Skip to content

Commit

Permalink
[dailymotion] improve extraction
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
remitamine authored and pareronia committed Jun 22, 2020
1 parent 030203c commit bd209f6
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 342 deletions.
13 changes: 13 additions & 0 deletions youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,19 @@ def build_stream_name():
# 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

Expand Down
Loading

0 comments on commit bd209f6

Please sign in to comment.