aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-06 16:39:35 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-06 16:39:35 +0200
commit1310bf247445148731dcfe1883b18fbf78795e9e (patch)
tree466c08489c437007d8367abe972557ba48adb47d /youtube_dl/extractor
parentb24f347190b02e519dae9e60e1dff2c56ecdd92f (diff)
[redtube] add age_limit
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/redtube.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py
index bb19b898a..365aade56 100644
--- a/youtube_dl/extractor/redtube.py
+++ b/youtube_dl/extractor/redtube.py
@@ -30,9 +30,14 @@ class RedTubeIE(InfoExtractor):
r'<h1 class="videoTitle slidePanelMovable">(.+?)</h1>',
webpage, u'title')
+ # No self-labeling, but they describe themselves as
+ # "Home of Videos Porno"
+ age_limit = 18
+
return {
- 'id': video_id,
- 'url': video_url,
- 'ext': video_extension,
- 'title': video_title,
+ 'id': video_id,
+ 'url': video_url,
+ 'ext': video_extension,
+ 'title': video_title,
+ 'age_limit': age_limit,
}