mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-02 01:37:52 +08:00
Added test for the new domain "porn.24video.net"
This commit is contained in:
parent
c887f9fca7
commit
627c0e9c24
@ -28,22 +28,17 @@ class TwentyFourVideoIE(InfoExtractor):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://www.24video.net/video/view/1044982',
|
'url': 'https://porn.24video.net/video/2640421-vsya-takaya-gibkaya-i-v-masle',
|
||||||
'md5': 'e09fc0901d9eaeedac872f154931deeb',
|
'md5': 'aa15e14301d90774e6a2c2e6155c203b',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1044982',
|
'id': '2640421',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Эротика каменного века',
|
'title': 'Вся такая гибкая и в масле',
|
||||||
'description': 'Как смотрели порно в каменном веке.',
|
'description': 'Lucy Doll вся в масле извивается, как змея, в различных позах. Красотка показывает недосягаемый уровень секса, сворачиваясь в невероятные конфигурации',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'timestamp': 1558363989,
|
||||||
'uploader': 'SUPERTELO',
|
'upload_date': '20190520',
|
||||||
'duration': 31,
|
|
||||||
'timestamp': 1275937857,
|
|
||||||
'upload_date': '20100607',
|
|
||||||
'age_limit': 18,
|
'age_limit': 18,
|
||||||
'like_count': int,
|
}
|
||||||
'dislike_count': int,
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://www.24video.net/player/new24_play.swf?id=1044982',
|
'url': 'http://www.24video.net/player/new24_play.swf?id=1044982',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
@ -83,10 +78,6 @@ class TwentyFourVideoIE(InfoExtractor):
|
|||||||
r'<time[^>]+\bdatetime="([^"]+)"[^>]+itemprop="uploadDate"',
|
r'<time[^>]+\bdatetime="([^"]+)"[^>]+itemprop="uploadDate"',
|
||||||
webpage, 'upload date', fatal=False))
|
webpage, 'upload date', fatal=False))
|
||||||
|
|
||||||
uploader = self._html_search_regex(
|
|
||||||
r'class="video-uploaded"[^>]*>\s*<a href="/jsecUser/movies/[^"]+"[^>]*>([^<]+)</a>',
|
|
||||||
webpage, 'uploader', fatal=False)
|
|
||||||
|
|
||||||
view_count = int_or_none(self._html_search_regex(
|
view_count = int_or_none(self._html_search_regex(
|
||||||
r'<span class="video-views">(\d+) просмотр',
|
r'<span class="video-views">(\d+) просмотр',
|
||||||
webpage, 'view count', fatal=False))
|
webpage, 'view count', fatal=False))
|
||||||
@ -118,7 +109,6 @@ class TwentyFourVideoIE(InfoExtractor):
|
|||||||
'title': title,
|
'title': title,
|
||||||
'description': description,
|
'description': description,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
'uploader': uploader,
|
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'view_count': view_count,
|
'view_count': view_count,
|
||||||
|
Loading…
Reference in New Issue
Block a user