[extractor/generic] Fix missing byte literal prefix
authorSergey M․ <dstftw@gmail.com>
Fri, 18 Mar 2016 23:43:43 +0000 (05:43 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 18 Mar 2016 23:43:43 +0000 (05:43 +0600)
youtube_dl/extractor/generic.py

index f28a65d9be347eebc20dde60bb1bb07a1ae7fcf0..26de27a7e2a86abae8a2c2fa79bce94645826b6f 100644 (file)
@@ -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