[common] Fix non-bootstrapped support in f4m

This commit is contained in:
Yen Chi Hsuan
2016-05-27 00:03:03 +08:00
parent 293c255688
commit 448bb5f333
2 changed files with 14 additions and 7 deletions

View File

@ -60,7 +60,7 @@ class PlaywireIE(InfoExtractor):
thumbnail = content.get('poster')
src = content['media']['f4m']
formats = self._extract_f4m_formats(src, video_id, assume_f4mv2=True, m3u8_id='hls')
formats = self._extract_f4m_formats(src, video_id, m3u8_id='hls')
for a_format in formats:
if not dict_get(a_format, ['tbr', 'width', 'height']):
a_format['quality'] = 1 if '-hd.' in a_format['url'] else 0