0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-30 03:33:02 +00:00

[extractor/common] Remove f4m section

It's now provided by `f4m_id`
This commit is contained in:
Sergey M․ 2015-04-04 23:05:25 +06:00
parent bc03228ab5
commit e21a55abcc

View file

@ -822,7 +822,7 @@ def _extract_f4m_formats(self, manifest_url, video_id, preference=None, f4m_id=N
(media_el.attrib.get('href') or media_el.attrib.get('url'))) (media_el.attrib.get('href') or media_el.attrib.get('url')))
tbr = int_or_none(media_el.attrib.get('bitrate')) tbr = int_or_none(media_el.attrib.get('bitrate'))
formats.append({ formats.append({
'format_id': '-'.join(filter(None, [f4m_id, 'f4m-%d' % (i if tbr is None else tbr)])), 'format_id': '-'.join(filter(None, [f4m_id, compat_str(i if tbr is None else tbr)])),
'url': manifest_url, 'url': manifest_url,
'ext': 'flv', 'ext': 'flv',
'tbr': tbr, 'tbr': tbr,