summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commita6aadecae8da29ca8fb2d882a6f7dcf00db4a048 (patch)
tree72f0d4add9e807b39c97415c5627f245894f048a
parent85f166eeecf2d8ce60b606f39354c59542825b87 (diff)
downloadcomedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.tar.gz
comedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.tar.bz2
comedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.zip
forgot to change some debugging stuff
-rwxr-xr-xcomedyGenerator7
1 files changed, 4 insertions, 3 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 5b28284..e4ae870 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -125,8 +125,9 @@ for tags in args.tags:
videos = videos[:args.amount]
if args.debug:
print("Videos list truncated! Its now: " + str(len(videos)) + " units long")
- for video in videos:
- print("Now running for " + str(video))
+ for video in videos:
+ if args.debug:
+ print("Now running for " + str(video))
if isinstance(video, str):
if args.debug:
@@ -135,10 +136,10 @@ for tags in args.tags:
path = '/home/' + os.environ['USER'] + '/Videos/unsorted/' + name
if args.debug:
print("name read as: " + name)
- print("saving " + video + " as " + name)
if os.path.exists(path):
print(name + " already exists!")
else:
+ print("saving " + video + " as " + name)
for tries in range(100):
try:
urllib.request.urlretrieve(video, path)