From 8bacc845a0e6e2d1665fd94ec82e50211f928a2c Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 27 May 2015 07:44:45 +1000 Subject: [PATCH] Return false instead of throwing exception when missing HLS stream --- brightcove.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brightcove.py b/brightcove.py index e52e15c..7bb5737 100644 --- a/brightcove.py +++ b/brightcove.py @@ -26,7 +26,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) + print("No HLS stream available for: " + self.title) + return False filename = self.title + ".ts" return download_hls(filename, video_url) -- 2.39.2