From ef87849c131516a07815205f546a5f5cc6fae91e Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 19 Jun 2017 22:24:43 +1000 Subject: [PATCH] iView supports hls-plus --- iview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iview.py b/iview.py index c2b7c5c..54a5d11 100644 --- a/iview.py +++ b/iview.py @@ -29,8 +29,10 @@ class IviewEpisodeNode(Node): def find_hls_url(self, playlist): for video in playlist: if video["type"] == "program": - return video["hls-high"].replace("http:", "https:") - raise Exception("Missing hls-high program stream for " + self.video_key) + for quality in ["hls-plus", "hls-high"]: + if quality in video: + return video[quality].replace("http:", "https:") + raise Exception("Missing program stream for " + self.video_key) def get_auth_details(self): with requests_cache.disabled(): -- 2.39.2