Browse Source

[extractor/generic] Fix missing byte literal prefix

master
Sergey M․ 8 years ago
parent
commit
0d769bcb78
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/generic.py

2
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

Loading…
Cancel
Save