From 7509538e645c2422edf1da354b524e297dfc05ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 2 Jan 2019 21:36:20 +0200 Subject: [PATCH] [kanal2]: skip entries without file key --- youtube_dl/extractor/kanal2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/kanal2.py b/youtube_dl/extractor/kanal2.py index de5c30116..648fd1a15 100644 --- a/youtube_dl/extractor/kanal2.py +++ b/youtube_dl/extractor/kanal2.py @@ -70,6 +70,8 @@ class Kanal2IE(InfoExtractor): session = self.get_session(playlist['data']['path'], video_id) sid = session.get('session') for stream in playlist['data']['streams']: + if not stream.get('file'): + continue formats.append({ 'protocol': 'm3u8', 'ext': 'mp4',