diff options
author | Remita Amine <remitamine@gmail.com> | 2019-11-26 22:01:34 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2019-11-26 22:18:21 +0100 |
commit | 5ef62fc4ce1f255343d67b70f3cee2f2240cdfba (patch) | |
tree | b512b6aaf2313ea0375326158f5de8fe65879df9 /youtube_dl/extractor/common.py | |
parent | df65a4a1ed3096b8210c097c77d00f0391f78503 (diff) | |
download | youtube-dl-5ef62fc4ce1f255343d67b70f3cee2f2240cdfba.tar.xz |
[dailymotion] improve extraction
- extract http formats included in m3u8 manifest
- fix user extraction(closes #3553)(closes #21415)
- add suport for User Authentication(closes #11491)
- fix password protected videos extraction(closes #23176)
- respect age limit option and family filter cookie value(closes #18437)
- handle video url playlist query param
- report alowed countries for geo-restricted videos
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 04d676378..eaae5e484 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1766,6 +1766,19 @@ class InfoExtractor(object): # the same GROUP-ID f['acodec'] = 'none' formats.append(f) + + # for DailyMotion + progressive_uri = last_stream_inf.get('PROGRESSIVE-URI') + if progressive_uri: + http_f = f.copy() + del http_f['manifest_url'] + http_f.update({ + 'format_id': f['format_id'].replace('hls-', 'http-'), + 'protocol': 'http', + 'url': progressive_uri, + }) + formats.append(http_f) + last_stream_inf = {} return formats |