]> code.delx.au - webdl/commitdiff
Add support for ABC iView HLS livestreams
authorPaul Wise <pabs3@bonedaddy.net>
Wed, 4 Nov 2020 09:29:41 +0000 (17:29 +0800)
committerPaul Wise <pabs3@bonedaddy.net>
Wed, 4 Nov 2020 09:34:52 +0000 (17:34 +0800)
Various video players such as mpv/vlc can play livestreams
while they are being dumped to disk by retrying after EOF.

iview.py

index 4818db93a81672ddf646259c5ce0364ccefac305..e7c198cbd325a443a3263dcd05299a78eb890a4b 100644 (file)
--- a/iview.py
+++ b/iview.py
@@ -32,7 +32,7 @@ class IviewEpisodeNode(Node):
 
     def find_hls_url(self, playlist):
         for video in playlist:
-            if video["type"] == "program":
+            if video["type"] in ["program", "livestream"]:
                 streams = video["streams"]["hls"]
                 for quality in ["720", "sd", "sd-low"]:
                     if quality in streams: