Added a test for the URL reported in youtube-dl Issue #30458.

This commit is contained in:
Jackson Humphrey 2024-11-13 16:12:55 -06:00
parent 10834f196d
commit d45461e4b3
1 changed files with 34 additions and 16 deletions

View File

@ -13,7 +13,8 @@ from ..utils import (
class AlphaPornoIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?alphaporno\.com/videos/(?P<id>[^/]+)'
_TEST = {
_TESTS = [
{
'url': 'http://www.alphaporno.com/videos/sensual-striptease-porn-with-samantha-alexandra/',
'md5': '7e6a1cdd48fa67362a5a11d7039164e7',
'info_dict': {
@ -29,7 +30,24 @@ class AlphaPornoIE(InfoExtractor):
'categories': list,
'age_limit': 18,
},
}
},
{
'url': 'https://www.alphaporno.com/videos/amazing-inches-hammering-her-pussy-in-such-addictive-ways/',
'info_dict': {
'id': '433761',
'ext': 'mp4',
'title': 'Amazing inches hammering her pussy in such addictive ways',
'display_id': 'amazing-inches-hammering-her-pussy-in-such-addictive-ways',
'timestamp': 1641065820,
'upload_date': '20220101',
'description': 'md5:8bf8e04807b890b847cc9238c445783a',
'categories': 'count:12',
'age_limit': 18,
'thumbnail': r're:https?://.*\.jpg$',
'duration': 298.0,
},
},
]
def _real_extract(self, url):
display_id = self._match_id(url)