projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2014.12.12.1
[youtube-dl]
/
youtube_dl
/
extractor
/
anysex.py
diff --git
a/youtube_dl/extractor/anysex.py
b/youtube_dl/extractor/anysex.py
index adeacba01b3bd77a501076f80757898ac090a3e1..ad86d6e58a0d6ac739af711745e73787cc83289e 100644
(file)
--- 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,
'description': 'md5:de9e418178e2931c10b62966474e1383',
'categories': ['Erotic'],
'duration': 270,
+ 'age_limit': 18,
}
}
}
}
@@
-34,7
+35,7
@@
class AnySexIE(InfoExtractor):
title = self._html_search_regex(r'<title>(.*?)</title>', webpage, 'title')
description = self._html_search_regex(
title = self._html_search_regex(r'<title>(.*?)</title>', webpage, 'title')
description = self._html_search_regex(
- r'<div class="description">([^<]+)</div>', webpage, 'description', fatal=False)
+ r'<div class="description"
[^>]*
>([^<]+)</div>', webpage, 'description', fatal=False)
thumbnail = self._html_search_regex(
r'preview_url\s*:\s*\'(.*?)\'', webpage, 'thumbnail', fatal=False)
thumbnail = self._html_search_regex(
r'preview_url\s*:\s*\'(.*?)\'', webpage, 'thumbnail', fatal=False)
@@
-42,8
+43,7
@@
class AnySexIE(InfoExtractor):
r'<a href="http://anysex\.com/categories/[^"]+" title="[^"]*">([^<]+)</a>', webpage)
duration = parse_duration(self._search_regex(
r'<a href="http://anysex\.com/categories/[^"]+" title="[^"]*">([^<]+)</a>', webpage)
duration = parse_duration(self._search_regex(
- r'<b>Duration:</b> (\d+:\d+)', webpage, 'duration', fatal=False))
-
+ r'<b>Duration:</b> (?:<q itemprop="duration">)?(\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))
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,
'categories': categories,
'duration': duration,
'view_count': view_count,
+ 'age_limit': 18,
}
}