From 3a492866a4254e34b127001d49914b8965bb664b Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 24 May 2015 22:14:45 +1000 Subject: [PATCH] Clearer error message when unencrypted stream is not available --- brightcove.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brightcove.py b/brightcove.py index 480108c..e52e15c 100644 --- a/brightcove.py +++ b/brightcove.py @@ -25,6 +25,8 @@ class BrightcoveVideoNode(Node): }) 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) -- 2.39.2