From 48d2aa427bc42ded90c9394db078d47dcd85360b Mon Sep 17 00:00:00 2001 From: msglm Date: Sun, 17 Aug 2025 19:53:51 -0500 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