summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commit8a3e7332205663c0d9f01929bf2e463dd1b3b75a (patch)
tree6123f576d90ac467f985bdf537e095b1a014278d
parent830c743faf74e16b75f924ddc6e95a02e2edad9a (diff)
downloadcomedyGenerator-8a3e7332205663c0d9f01929bf2e463dd1b3b75a.tar.gz
comedyGenerator-8a3e7332205663c0d9f01929bf2e463dd1b3b75a.tar.bz2
comedyGenerator-8a3e7332205663c0d9f01929bf2e463dd1b3b75a.zip
also get rid of some redundency
-rwxr-xr-xcomedyGenerator9
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: