summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:07 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:07 -0600
commit0191746a18c55bb32021453197f14f17ed52fa54 (patch)
treeec2494026c0b22b0be3c24c9e9113cb3b6f70e43
parentbec5ca31143c6c84213f9e3fde56e6eca46fbee1 (diff)
downloadcomedyGenerator-0191746a18c55bb32021453197f14f17ed52fa54.tar.gz
comedyGenerator-0191746a18c55bb32021453197f14f17ed52fa54.tar.bz2
comedyGenerator-0191746a18c55bb32021453197f14f17ed52fa54.zip
fixing debug info of last commit
-rwxr-xr-xcomedyGenerator10
1 files changed, 5 insertions, 5 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 894acc4..bd015b7 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -149,10 +149,6 @@ elif args.usingJavascript:
print("Videos list truncated! Its now: " + str(len(videos)) + " units long")
for video in videos:
URL = video.get_attribute("data-src")
- if isinstance(URL, str) and args.debug == True:
- print("URL is a string!")
- else:
- print("URL is NOT a string, it is a " + str(type(URL)))
if isinstance(URL, str):
if args.debug:
@@ -170,6 +166,11 @@ elif args.usingJavascript:
time.sleep(tries*1.5)
continue
break
+ elif args.debug:
+ print("URL is NOT a string, it is a " + str(type(URL)))
+ print("URL was " + URL)
+
+
driver.quit()
else:
@@ -187,4 +188,3 @@ else:
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-