diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-10-28 10:44:13 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-10-28 10:44:13 +0100 |
commit | ebc14f251c2968f4cb6cb18610b857ecb24348c8 (patch) | |
tree | d33050d96f576d2a9710ccea7fac729116358025 /youtube_dl/extractor/youjizz.py | |
parent | d41e6efc852c34da582790a54ecc4f5e9dbbedda (diff) | |
parent | 8ffa13e03e995f2009d8240cbdc6ba7aba9d3759 (diff) | |
download | youtube-dl-ebc14f251c2968f4cb6cb18610b857ecb24348c8.tar.xz |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'youtube_dl/extractor/youjizz.py')
-rw-r--r-- | youtube_dl/extractor/youjizz.py | 8 |
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] |