From 0d2c821585902e91a36db2d0703670ec41794664 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 8 Aug 2015 15:01:17 +1000 Subject: [PATCH] Don't strip scheme from livestreamer URLs - support https HLS --- common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.py b/common.py index cabfd93..7bf8298 100644 --- 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 = [ -- 2.39.2