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
commit830c743faf74e16b75f924ddc6e95a02e2edad9a (patch)
tree60ea918c0ed3eea9138bf26bce324e2389944c2c
parent1d89ab4ab4325604a95b665faac83184a0e3f7e8 (diff)
downloadcomedyGenerator-830c743faf74e16b75f924ddc6e95a02e2edad9a.tar.gz
comedyGenerator-830c743faf74e16b75f924ddc6e95a02e2edad9a.tar.bz2
comedyGenerator-830c743faf74e16b75f924ddc6e95a02e2edad9a.zip
itoddlers need h.264
-rwxr-xr-xcomedyGenerator5
1 files changed, 3 insertions, 2 deletions
diff --git a/comedyGenerator b/comedyGenerator
index a5206b1..3e31e95 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -221,7 +221,7 @@ 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 + "." + "webm"
+ convertedOutputPath = args.output + tags + " - " + name + "." + "mp4"
if args.verbose:
print("name read as: " + name)
if os.path.exists(outputPath):
@@ -231,7 +231,8 @@ for tags in args.tags:
urllib.request.urlretrieve(video, outputPath)
if args.verbose:
print("converting " + outputPath + " to " + convertedOutputPath)
- os.system("ffmpeg -i \"" + outputPath + "\" \"" + convertedOutputPath + "\"")
+ os.system("ffmpeg -y -i \"" + outputPath + "\" \"" + convertedOutputPath + "\"")
+ os.remove(outputPath)
if args.verbose:
print("converting complete!")
if args.jobs > 1 and args.noDownload == False: