From: James Bunton Date: Sun, 24 Feb 2019 00:04:14 +0000 (+1100) Subject: iview: don't blow up if video is unavailable X-Git-Url: https://code.delx.au/webdl/commitdiff_plain/0628ff6a7595a7b7b569f517cee98cdb0938af3d iview: don't blow up if video is unavailable --- diff --git a/iview.py b/iview.py index b41aa3e..dc1ea7c 100644 --- a/iview.py +++ b/iview.py @@ -53,6 +53,8 @@ class IviewEpisodeNode(Node): def download(self): info = grab_json(API_URL + "/programs/" + self.video_key) + if "playlist" not in info: + return False video_url = self.find_hls_url(info["playlist"]) token, token_hostname= self.get_auth_details() video_url = self.add_auth_token_to_url(video_url, token, token_hostname)