From 0d769bcb781b46a00ddf958d6ea945560f2d6cd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 19 Mar 2016 05:43:43 +0600 Subject: [PATCH] [extractor/generic] Fix missing byte literal prefix --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index f28a65d9b..26de27a7e 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1317,7 +1317,7 @@ class GenericIE(InfoExtractor): first_bytes = full_response.read(512) # Is it an M3U playlist? - if first_bytes.startswith('#EXTM3U'): + if first_bytes.startswith(b'#EXTM3U'): info_dict['formats'] = self._extract_m3u8_formats(url, video_id, 'mp4') return info_dict -- 2.22.2