diff options
-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) |