[dlive] Relax _VALID_URL (#21909)
parent
2c8b1a21e8
commit
07ab44c420
|
@ -9,8 +9,8 @@ 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>[^/?#&]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://dlive.tv/p/pdp+3mTzOl4WR',
|
'url': 'https://dlive.tv/p/pdp+3mTzOl4WR',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '3mTzOl4WR',
|
'id': '3mTzOl4WR',
|
||||||
|
@ -20,7 +20,10 @@ class DLiveVODIE(InfoExtractor):
|
||||||
'timestamp': 1562011015,
|
'timestamp': 1562011015,
|
||||||
'uploader_id': 'pdp',
|
'uploader_id': 'pdp',
|
||||||
}
|
}
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://dlive.tv/p/pdpreplay+D-RD-xSZg',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
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…
Reference in New Issue