diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-09-17 21:33:38 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-09-17 21:33:38 +0700 |
commit | 30d0b549be5696f24b87471a0e691f9afca4a9c8 (patch) | |
tree | a7d6705e7ba5f01b2cb6f3cc91ca4df91b891326 /youtube_dl/extractor/common.py | |
parent | 86f4d14f817acaee1f1f544cd9b06d47bc2a5180 (diff) |
[extractor/common] Add manifest_url for hls and hds formats
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index f35311e7a..9c8991542 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1150,6 +1150,7 @@ class InfoExtractor(object): formats.append({ 'format_id': format_id, 'url': manifest_url, + 'manifest_url': manifest_url, 'ext': 'flv' if bootstrap_info is not None else None, 'tbr': tbr, 'width': width, @@ -1255,9 +1256,11 @@ class InfoExtractor(object): # format_id intact. if not live: format_id.append(stream_name if stream_name else '%d' % (tbr if tbr else len(formats))) + manifest_url = format_url(line.strip()) f = { 'format_id': '-'.join(format_id), - 'url': format_url(line.strip()), + 'url': manifest_url, + 'manifest_url': manifest_url, 'tbr': tbr, 'ext': ext, 'fps': float_or_none(last_info.get('FRAME-RATE')), |