]> code.delx.au - webdl/commitdiff
Clearer error message when unencrypted stream is not available
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 24 May 2015 12:14:45 +0000 (22:14 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 24 May 2015 12:14:45 +0000 (22:14 +1000)
brightcove.py

index 480108ce10ebeabdaed75d1c7006021b1ed6f638..e52e15cff1f28c21a2e82dc6568154592082f502 100644 (file)
@@ -25,6 +25,8 @@ class BrightcoveVideoNode(Node):
         })
         doc = grab_json(desc_url, 3600)
         video_url = doc["HLSURL"]
         })
         doc = grab_json(desc_url, 3600)
         video_url = doc["HLSURL"]
+        if not video_url:
+            raise Exception("No HLS stream available for: " + self.title)
 
         filename = self.title + ".ts"
         return download_hls(filename, video_url)
 
         filename = self.title + ".ts"
         return download_hls(filename, video_url)