summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
committermsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
commit48d2aa427bc42ded90c9394db078d47dcd85360b (patch)
treee9f6fc518cfcc5b2e1f49d560c94695ac2ae2340
parentc16523aeeea0b3576ae9a266222e63289d554489 (diff)
downloadcomedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.tar.gz
comedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.tar.bz2
comedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.zip
forgor gifs
-rwxr-xr-xcomedyGenerator5
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: