aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youjizz.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-10-28 01:50:17 -0400
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-10-28 01:50:17 -0400
commit750e9833b83c6e17a4efa8d5dac5b3cd848f4603 (patch)
treee9380854bb2d946aae957507cea63a09adc6d76d /youtube_dl/extractor/youjizz.py
parent82f0ac657c0399659863b0bdec3afea2020ca5a9 (diff)
Add the missing age_limit tags; added a devscript to do a superficial check for porn sites without the age_limit tag in the test
Diffstat (limited to 'youtube_dl/extractor/youjizz.py')
-rw-r--r--youtube_dl/extractor/youjizz.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youjizz.py b/youtube_dl/extractor/youjizz.py
index 1265639e8..1fcc518ac 100644
--- a/youtube_dl/extractor/youjizz.py
+++ b/youtube_dl/extractor/youjizz.py
@@ -13,7 +13,8 @@ class YouJizzIE(InfoExtractor):
u'file': u'2189178.flv',
u'md5': u'07e15fa469ba384c7693fd246905547c',
u'info_dict': {
- u"title": u"Zeichentrick 1"
+ u"title": u"Zeichentrick 1",
+ u"age_limit": 18,
}
}
@@ -25,6 +26,8 @@ class YouJizzIE(InfoExtractor):
# Get webpage content
webpage = self._download_webpage(url, video_id)
+ age_limit = self._rta_search(webpage)
+
# Get the video title
video_title = self._html_search_regex(r'<title>(?P<title>.*)</title>',
webpage, u'title').strip()
@@ -60,6 +63,7 @@ class YouJizzIE(InfoExtractor):
'title': video_title,
'ext': 'flv',
'format': 'flv',
- 'player_url': embed_page_url}
+ 'player_url': embed_page_url,
+ 'age_limit': age_limit}
return [info]