From: James Bunton Date: Tue, 26 May 2015 21:44:45 +0000 (+1000) Subject: Return false instead of throwing exception when missing HLS stream X-Git-Url: https://code.delx.au/webdl/commitdiff_plain/8bacc845a0e6e2d1665fd94ec82e50211f928a2c Return false instead of throwing exception when missing HLS stream --- 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)