diff options
author | msglm <msglm@techchud.xyz> | 2025-08-17 19:53:51 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2025-08-17 19:53:51 -0500 |
commit | 48d2aa427bc42ded90c9394db078d47dcd85360b (patch) | |
tree | e9f6fc518cfcc5b2e1f49d560c94695ac2ae2340 | |
parent | c16523aeeea0b3576ae9a266222e63289d554489 (diff) | |
download | comedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.tar.gz comedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.tar.bz2 comedyGenerator-48d2aa427bc42ded90c9394db078d47dcd85360b.zip |
forgor gifs
-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: |