X-Git-Url: https://code.delx.au/webdl/blobdiff_plain/4be93f9f4ba88380b1ca88aceb2b950fc5888c17..bfaf019987c47406335b61c5825cabe21cafa107:/sbs.py diff --git a/sbs.py b/sbs.py index 55ded10..1b6af3a 100644 --- a/sbs.py +++ b/sbs.py @@ -23,8 +23,13 @@ class SbsVideoNode(Node): with requests_cache.disabled(): doc = grab_html(VIDEO_URL % self.video_id) player_params = self.get_player_params(doc) - release_url = player_params["releaseUrls"]["html"] + error = player_params.get("error", None) + if error: + print("Cannot download:", error) + return False + + release_url = player_params["releaseUrls"]["html"] filename = self.title + ".ts" hls_url = self.get_hls_url(release_url)