summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: