mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
Add age-limit option on dailymotion to download explicit
This commit is contained in:
parent
8c5879715f
commit
9203bf6bea
@ -182,6 +182,11 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
||||
if metadata_url:
|
||||
metadata_url = metadata_url.replace(':videoId', video_id)
|
||||
else:
|
||||
if (17 < age_limit) :
|
||||
metadata_url = update_url_query(
|
||||
'https://www.dailymotion.com/player/metadata/video/%s'
|
||||
% video_id, {})
|
||||
else :
|
||||
metadata_url = update_url_query(
|
||||
'https://www.dailymotion.com/player/metadata/video/%s'
|
||||
% video_id, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user