]> code.delx.au - webdl/commitdiff
Don't strip scheme from livestreamer URLs - support https HLS
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 8 Aug 2015 05:01:17 +0000 (15:01 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 8 Aug 2015 05:01:17 +0000 (15:01 +1000)
common.py

index cabfd936c30f65e8fb11df8758888f455ac14222..7bf8298601ed8e447d3d5d4620eaf91b08c2db54 100644 (file)
--- a/common.py
+++ b/common.py
@@ -247,7 +247,7 @@ def download_hds(filename, video_url, pvswf=None):
     filename = sanify_filename(filename)
     logging.info("Downloading: %s", filename)
 
-    video_url = video_url.replace("http://", "hds://")
+    video_url = "hds://" + video_url
     if pvswf:
         param = "%s pvswf=%s" % (video_url, pvswf)
     else:
@@ -266,7 +266,7 @@ def download_hds(filename, video_url, pvswf=None):
 
 def download_hls(filename, video_url):
     filename = sanify_filename(filename)
-    video_url = video_url.replace("http://", "hlsvariant://")
+    video_url = "hlsvariant://" + video_url
     logging.info("Downloading: %s", filename)
 
     cmd = [