From c16523aeeea0b3576ae9a266222e63289d554489 Mon Sep 17 00:00:00 2001 From: msglm Date: Sun, 17 Aug 2025 19:53:51 -0500 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