diff options
author | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-11 20:51:08 -0600 |
commit | 4c61aeff0369b8bb74fae5eecb1101aa5ae02df3 (patch) | |
tree | e9f6fc518cfcc5b2e1f49d560c94695ac2ae2340 | |
parent | 8a3e7332205663c0d9f01929bf2e463dd1b3b75a (diff) | |
download | comedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.tar.gz comedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.tar.bz2 comedyGenerator-4c61aeff0369b8bb74fae5eecb1101aa5ae02df3.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: |