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 | c16523aeeea0b3576ae9a266222e63289d554489 (patch) | |
tree | 6123f576d90ac467f985bdf537e095b1a014278d | |
parent | 211b915396ba3f6ec8df1467f1473353a67101c5 (diff) | |
download | comedyGenerator-c16523aeeea0b3576ae9a266222e63289d554489.tar.gz comedyGenerator-c16523aeeea0b3576ae9a266222e63289d554489.tar.bz2 comedyGenerator-c16523aeeea0b3576ae9a266222e63289d554489.zip |
also get rid of some redundency
-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: |