X-Git-Url: https://code.delx.au/webdl/blobdiff_plain/6288e711007dc5cbc8082ca017201464bdb9319e..ef87849c131516a07815205f546a5f5cc6fae91e:/iview.py 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():