mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[beeg] Add age_limit
This commit is contained in:
parent
563f6dea59
commit
7ca2e11f24
@ -17,6 +17,7 @@ class BeegIE(InfoExtractor):
|
|||||||
'description': 'md5:6db3c6177972822aaba18652ff59c773',
|
'description': 'md5:6db3c6177972822aaba18652ff59c773',
|
||||||
'categories': list, # NSFW
|
'categories': list, # NSFW
|
||||||
'thumbnail': 're:https?://.*\.jpg$',
|
'thumbnail': 're:https?://.*\.jpg$',
|
||||||
|
'age_limit': 18,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +42,9 @@ class BeegIE(InfoExtractor):
|
|||||||
|
|
||||||
categories_str = self._html_search_regex(
|
categories_str = self._html_search_regex(
|
||||||
r'<meta name="keywords" content="([^"]+)"', webpage, 'categories', fatal=False)
|
r'<meta name="keywords" content="([^"]+)"', webpage, 'categories', fatal=False)
|
||||||
categories = categories_str.split(',')
|
categories = (
|
||||||
|
None if categories_str is None
|
||||||
|
else categories_str.split(','))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
@ -50,4 +53,5 @@ class BeegIE(InfoExtractor):
|
|||||||
'description': description,
|
'description': description,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
'categories': categories,
|
'categories': categories,
|
||||||
|
'age_limit': 18,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user