From 8a3e7332205663c0d9f01929bf2e463dd1b3b75a Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 11 Jan 2023 20:51:08 -0600 Subject: also get rid of some redundency --- comedyGenerator | 9 ++------- 1 file 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: -- cgit v1.2.3