1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/generic] Fix missing byte literal prefix

This commit is contained in:
Sergey M․ 2016-03-19 05:43:43 +06:00
parent 4cd70099ea
commit 0d769bcb78

View 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