Browse Source

[common] Fix format_id construction for HLS

totalwebcasting
Yen Chi Hsuan 8 years ago
parent
commit
e9c6cdf4a1
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

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

@ -1142,7 +1142,7 @@ class InfoExtractor(object):
# Bandwidth of live streams may differ over time thus making
# format_id unpredictable. So it's better to keep provided
# format_id intact.
if last_media_name and not live:
if not live:
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
f = {
'format_id': '-'.join(format_id),


Loading…
Cancel
Save