diff options
author | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
commit | a6aadecae8da29ca8fb2d882a6f7dcf00db4a048 (patch) | |
tree | 72f0d4add9e807b39c97415c5627f245894f048a | |
parent | 85f166eeecf2d8ce60b606f39354c59542825b87 (diff) | |
download | comedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.tar.gz comedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.tar.bz2 comedyGenerator-a6aadecae8da29ca8fb2d882a6f7dcf00db4a048.zip |
forgot to change some debugging stuff
-rwxr-xr-x | comedyGenerator | 7 |
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) |