0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 01:25:11 +00:00

[anysex] Implement age_limit

This commit is contained in:
Philipp Hagemeister 2014-09-01 22:58:59 +02:00
parent 07e7dc4bdc
commit 11342b54d6

View file

@ -21,6 +21,7 @@ class AnySexIE(InfoExtractor):
'description': 'md5:de9e418178e2931c10b62966474e1383', 'description': 'md5:de9e418178e2931c10b62966474e1383',
'categories': ['Erotic'], 'categories': ['Erotic'],
'duration': 270, 'duration': 270,
'age_limit': 18,
} }
} }
@ -43,7 +44,6 @@ def _real_extract(self, url):
duration = parse_duration(self._search_regex( duration = parse_duration(self._search_regex(
r'<b>Duration:</b> (\d+:\d+)', webpage, 'duration', fatal=False)) r'<b>Duration:</b> (\d+:\d+)', webpage, 'duration', fatal=False))
view_count = int_or_none(self._html_search_regex( view_count = int_or_none(self._html_search_regex(
r'<b>Views:</b> (\d+)', webpage, 'view count', fatal=False)) r'<b>Views:</b> (\d+)', webpage, 'view count', fatal=False))
@ -57,4 +57,5 @@ def _real_extract(self, url):
'categories': categories, 'categories': categories,
'duration': duration, 'duration': duration,
'view_count': view_count, 'view_count': view_count,
'age_limit': 18,
} }