Browse Source

[extractor/common] Fix audio only with audio group in m3u8 (closes #11995)

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
242a14a1f6
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/common.py

+ 2
- 2
youtube_dl/extractor/common.py View File

@ -1315,8 +1315,8 @@ class InfoExtractor(object):
'abr': abr,
})
f.update(parse_codecs(last_info.get('CODECS')))
if audio_in_video_stream.get(last_info.get('AUDIO')) is False:
# TODO: update acodec for for audio only formats with the same GROUP-ID
if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f['vcodec'] != 'none':
# TODO: update acodec for audio only formats with the same GROUP-ID
f['acodec'] = 'none'
formats.append(f)
last_info = {}


Loading…
Cancel
Save