diff options
-rwxr-xr-x | comedyGenerator | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/comedyGenerator b/comedyGenerator index 143e4a2..2834126 100755 --- a/comedyGenerator +++ b/comedyGenerator @@ -227,7 +227,10 @@ for tags in args.tags: print(name + " already exists!") else: print("saving " + video + " as " + name) - os.system("ffmpeg -y -i \"" + video + "\" \"" + outputPath + "\"") + if args.type.lower() == "video" or args.type.lower() == "videos": + os.system("ffmpeg -y -i \"" + video + "\" \"" + outputPath + "\"") + elif args.type.lower() == "gifs" or args.type.lower() == "gif": + urllib.request.urlretrieve(video, outputPath) if args.verbose: print("saving complete!") if args.jobs > 1 and args.noDownload == False: |