summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commit4c61aeff0369b8bb74fae5eecb1101aa5ae02df3 (patch)
treee9f6fc518cfcc5b2e1f49d560c94695ac2ae2340
parent8a3e7332205663c0d9f01929bf2e463dd1b3b75a (diff)
downloadcomedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.tar.gz
comedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.tar.bz2
comedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.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: