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 committed Nov 26, 2019
1 parent df65a4a commit 5ef62fc
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 5ef62fc

Please sign in to comment.