From 4c61aeff0369b8bb74fae5eecb1101aa5ae02df3 Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 11 Jan 2023 20:51:08 -0600 Subject: forgor gifs --- comedyGenerator | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3