mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-28 15:50:25 +01:00
[common] Ignore subtitles in m3u8
This commit is contained in:
parent
d9a743d917
commit
05d5392cda
@ -896,7 +896,7 @@ class InfoExtractor(object):
|
|||||||
format_id = []
|
format_id = []
|
||||||
if m3u8_id:
|
if m3u8_id:
|
||||||
format_id.append(m3u8_id)
|
format_id.append(m3u8_id)
|
||||||
last_media_name = last_media.get('NAME') if last_media else None
|
last_media_name = last_media.get('NAME') if last_media and last_media.get('TYPE') != 'SUBTITLES' else None
|
||||||
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
|
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
|
||||||
f = {
|
f = {
|
||||||
'format_id': '-'.join(format_id),
|
'format_id': '-'.join(format_id),
|
||||||
|
Loading…
Reference in New Issue
Block a user