]> code.delx.au - webdl/blobdiff - iview.py
iView supports hls-plus
[webdl] / iview.py
index c2b7c5c056bca9ff420eac5d6fa5714f43300298..54a5d1142e9869c567db7e7c2cca9745e27308c5 100644 (file)
--- 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():