aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/beeg.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-01 23:13:04 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-01 23:13:04 +0200
commit7ca2e11f24aa1b4232cb0ce9f9f33c98f76f3aa1 (patch)
tree00d0ab6e8605a0a2cb1c87d85f69be319713ab9a /youtube_dl/extractor/beeg.py
parent563f6dea5913e22052f644270cdc19b09f38de84 (diff)
[beeg] Add age_limit
Diffstat (limited to 'youtube_dl/extractor/beeg.py')
-rw-r--r--youtube_dl/extractor/beeg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/beeg.py b/youtube_dl/extractor/beeg.py
index c2692cfdc..d7301fe18 100644
--- a/youtube_dl/extractor/beeg.py
+++ b/youtube_dl/extractor/beeg.py
@@ -17,6 +17,7 @@ class BeegIE(InfoExtractor):
'description': 'md5:6db3c6177972822aaba18652ff59c773',
'categories': list, # NSFW
'thumbnail': 're:https?://.*\.jpg$',
+ 'age_limit': 18,
}
}
@@ -41,7 +42,9 @@ class BeegIE(InfoExtractor):
categories_str = self._html_search_regex(
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 {
'id': video_id,
@@ -50,4 +53,5 @@ class BeegIE(InfoExtractor):
'description': description,
'thumbnail': thumbnail,
'categories': categories,
+ 'age_limit': 18,
}