]> code.delx.au - webdl/commitdiff
Force overwriting existing files to avoid prompting
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 13 Mar 2017 22:07:30 +0000 (09:07 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 13 Mar 2017 22:07:30 +0000 (09:07 +1100)
common.py

index 18460f90da696bdccbc404240d2540cf5507d6a2..f0886c8f808fa734e40c41ffcab896d6578e9fb2 100644 (file)
--- a/common.py
+++ b/common.py
@@ -202,6 +202,7 @@ def remux(infile, outfile):
         "-bsf:a", "aac_adtstoasc",
         "-acodec", "copy",
         "-vcodec", "copy",
+        "-y",
         outfile,
     ]
     if not exec_subprocess(cmd):
@@ -242,6 +243,7 @@ def download_hds(filename, video_url, pvswf=None):
 
     cmd = [
         "livestreamer",
+        "-f",
         "-o", filename,
         param,
         "best",
@@ -258,6 +260,7 @@ def download_hls(filename, video_url):
 
     cmd = [
         "livestreamer",
+        "-f",
         "-o", filename,
         video_url,
         "best",