[dlive] add test for VOD vid with hyphens
This commit is contained in:
parent
23de563977
commit
4809a76161
@ -10,17 +10,31 @@ from ..utils import int_or_none
|
|||||||
class DLiveVODIE(InfoExtractor):
|
class DLiveVODIE(InfoExtractor):
|
||||||
IE_NAME = 'dlive:vod'
|
IE_NAME = 'dlive:vod'
|
||||||
_VALID_URL = r'https?://(?:www\.)?dlive\.tv/p/(?P<uploader_id>.+?)\+(?P<id>[a-zA-Z0-9-]+)'
|
_VALID_URL = r'https?://(?:www\.)?dlive\.tv/p/(?P<uploader_id>.+?)\+(?P<id>[a-zA-Z0-9-]+)'
|
||||||
_TEST = {
|
_TESTS = [
|
||||||
'url': 'https://dlive.tv/p/pdp+3mTzOl4WR',
|
{
|
||||||
'info_dict': {
|
'url': 'https://dlive.tv/p/pdp+3mTzOl4WR',
|
||||||
'id': '3mTzOl4WR',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '3mTzOl4WR',
|
||||||
'title': 'Minecraft with james charles epic',
|
'ext': 'mp4',
|
||||||
'upload_date': '20190701',
|
'title': 'Minecraft with james charles epic',
|
||||||
'timestamp': 1562011015,
|
'upload_date': '20190701',
|
||||||
'uploader_id': 'pdp',
|
'timestamp': 1562011015,
|
||||||
|
'uploader_id': 'pdp',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'https://dlive.tv/p/pdpreplay+D-RD-xSZg',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'D-RD-xSZg',
|
||||||
|
'title': 'Past Broadcast on July 1st, 2019 - Minecraft with james charles epic',
|
||||||
|
'uploader_id': 'pdpreplay',
|
||||||
|
'upload_date': '20190711',
|
||||||
|
'thumbnail': 'https://images.prd.dlivecdn.com/thumbnail/eceb2161-8984-11e9-9b13-f6d36f09ac29',
|
||||||
|
'timestamp': 1562826006,
|
||||||
|
'ext': 'mp4',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
uploader_id, vod_id = re.match(self._VALID_URL, url).groups()
|
uploader_id, vod_id = re.match(self._VALID_URL, url).groups()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user