mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-10-02 06:18:37 +09:00
Call extracted property age_limit everywhere
This commit is contained in:
@@ -47,6 +47,6 @@ class PornotubeIE(InfoExtractor):
|
||||
'title': video_title,
|
||||
'ext': 'flv',
|
||||
'format': 'flv',
|
||||
'age_restriction': age_limit}
|
||||
'age_limit': age_limit}
|
||||
|
||||
return [info]
|
||||
|
@@ -117,7 +117,7 @@ class YouPornIE(InfoExtractor):
|
||||
'format': format,
|
||||
'thumbnail': thumbnail,
|
||||
'description': video_description,
|
||||
'age_restriction': age_limit,
|
||||
'age_limit': age_limit,
|
||||
})
|
||||
|
||||
if self._downloader.params.get('listformats', None):
|
||||
|
@@ -1496,7 +1496,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||
'player_url': player_url,
|
||||
'subtitles': video_subtitles,
|
||||
'duration': video_duration,
|
||||
'age_restriction': 18 if age_gate else 0,
|
||||
'age_limit': 18 if age_gate else 0,
|
||||
})
|
||||
return results
|
||||
|
||||
|
Reference in New Issue
Block a user