diff --git a/lib/svtplay_dl/fetcher/hls.py b/lib/svtplay_dl/fetcher/hls.py index e24e9fe..d220649 100644 --- a/lib/svtplay_dl/fetcher/hls.py +++ b/lib/svtplay_dl/fetcher/hls.py @@ -83,7 +83,10 @@ class HLS(VideoRetriever): sys.exit(2) match = re.search(r'URI="(https?://.*?)"', keydata) - key = get_http_data(match.group(1)) + error, key = get_http_data(match.group(1)) + if error: + log.error("Can't get crypto key to decode files.") + return rand = os.urandom(16) decryptor = AES.new(key, AES.MODE_CBC, rand)