diff options
-rwxr-xr-x | comedyGenerator | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/comedyGenerator b/comedyGenerator index 3e31e95..143e4a2 100755 --- a/comedyGenerator +++ b/comedyGenerator @@ -221,20 +221,15 @@ for tags in args.tags: name = name[0:200] name = name.replace('"', "") outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1] - convertedOutputPath = args.output + tags + " - " + name + "." + "mp4" if args.verbose: print("name read as: " + name) if os.path.exists(outputPath): print(name + " already exists!") else: print("saving " + video + " as " + name) - urllib.request.urlretrieve(video, outputPath) + os.system("ffmpeg -y -i \"" + video + "\" \"" + outputPath + "\"") if args.verbose: - print("converting " + outputPath + " to " + convertedOutputPath) - os.system("ffmpeg -y -i \"" + outputPath + "\" \"" + convertedOutputPath + "\"") - os.remove(outputPath) - if args.verbose: - print("converting complete!") + print("saving complete!") if args.jobs > 1 and args.noDownload == False: pool = Pool(args.jobs) for video in videos: |