about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-01 22:58:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-01 22:58:59 +0200
commit11342b54d6a77fb62998f8331d36855829ba391f (patch)
tree0a00522d4b6c1b94400d33afef7bc8bb90ab49c9
parent07e7dc4bdcdf7a9393594ab88a42cb2dfed0208d (diff)
downloadyoutube-dl-11342b54d6a77fb62998f8331d36855829ba391f.tar.gz
youtube-dl-11342b54d6a77fb62998f8331d36855829ba391f.tar.xz
youtube-dl-11342b54d6a77fb62998f8331d36855829ba391f.zip
[anysex] Implement age_limit
-rw-r--r--youtube_dl/extractor/anysex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/anysex.py b/youtube_dl/extractor/anysex.py
index adeacba01..bc64423a3 100644
--- a/youtube_dl/extractor/anysex.py
+++ b/youtube_dl/extractor/anysex.py
@@ -21,6 +21,7 @@ class AnySexIE(InfoExtractor):
             'description': 'md5:de9e418178e2931c10b62966474e1383',
             'categories': ['Erotic'],
             'duration': 270,
+            'age_limit': 18,
         }
     }
 
@@ -43,7 +44,6 @@ class AnySexIE(InfoExtractor):
 
         duration = parse_duration(self._search_regex(
             r'<b>Duration:</b> (\d+:\d+)', webpage, 'duration', fatal=False))
-
         view_count = int_or_none(self._html_search_regex(
             r'<b>Views:</b> (\d+)', webpage, 'view count', fatal=False))
 
@@ -57,4 +57,5 @@ class AnySexIE(InfoExtractor):
             'categories': categories,
             'duration': duration,
             'view_count': view_count,
+            'age_limit': 18,
         }