X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fanysex.py;h=ad86d6e58a0d6ac739af711745e73787cc83289e;hb=2f483bc1c389709623117079439708783122b5ec;hp=adeacba01b3bd77a501076f80757898ac090a3e1;hpb=b170935a8f2dbae376c4647686e97cdff27a0d82;p=youtube-dl diff --git a/youtube_dl/extractor/anysex.py b/youtube_dl/extractor/anysex.py index adeacba01..ad86d6e58 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, } } @@ -34,7 +35,7 @@ class AnySexIE(InfoExtractor): title = self._html_search_regex(r'(.*?)', webpage, 'title') description = self._html_search_regex( - r'
([^<]+)
', webpage, 'description', fatal=False) + r'
]*>([^<]+)
', webpage, 'description', fatal=False) thumbnail = self._html_search_regex( r'preview_url\s*:\s*\'(.*?)\'', webpage, 'thumbnail', fatal=False) @@ -42,8 +43,7 @@ class AnySexIE(InfoExtractor): r'([^<]+)', webpage) duration = parse_duration(self._search_regex( - r'Duration: (\d+:\d+)', webpage, 'duration', fatal=False)) - + r'Duration: (?:)?(\d+:\d+)', webpage, 'duration', fatal=False)) view_count = int_or_none(self._html_search_regex( r'Views: (\d+)', webpage, 'view count', fatal=False)) @@ -57,4 +57,5 @@ class AnySexIE(InfoExtractor): 'categories': categories, 'duration': duration, 'view_count': view_count, + 'age_limit': 18, }