Add age-limit option on dailymotion to download explicit
This commit is contained in:
parent
8c5879715f
commit
9203bf6bea
@ -181,6 +181,11 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
|||||||
player, lambda x: x['context']['metadata_template_url1']))
|
player, lambda x: x['context']['metadata_template_url1']))
|
||||||
if metadata_url:
|
if metadata_url:
|
||||||
metadata_url = metadata_url.replace(':videoId', video_id)
|
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 :
|
else :
|
||||||
metadata_url = update_url_query(
|
metadata_url = update_url_query(
|
||||||
'https://www.dailymotion.com/player/metadata/video/%s'
|
'https://www.dailymotion.com/player/metadata/video/%s'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user