aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCeruleanSky <CeruleanSky@users.noreply.github.com>2019-07-30 14:43:49 -0400
committerSergey M <dstftw@gmail.com>2019-07-31 01:43:49 +0700
commit07ab44c420a79d1faae09d00323242746e522c4c (patch)
tree035ed25b18b2aa72e38352e51f3ee6cad89c10e6
parent2c8b1a21e8901904ab674264f5eda118bca992a5 (diff)
downloadyoutube-dl-07ab44c420a79d1faae09d00323242746e522c4c.tar.xz
[dlive] Relax _VALID_URL (#21909)
-rw-r--r--youtube_dl/extractor/dlive.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/dlive.py b/youtube_dl/extractor/dlive.py
index 8787f15a6..d95c67a5b 100644
--- a/youtube_dl/extractor/dlive.py
+++ b/youtube_dl/extractor/dlive.py
@@ -9,8 +9,8 @@ from ..utils import int_or_none
class DLiveVODIE(InfoExtractor):
IE_NAME = 'dlive:vod'
- _VALID_URL = r'https?://(?:www\.)?dlive\.tv/p/(?P<uploader_id>.+?)\+(?P<id>[a-zA-Z0-9]+)'
- _TEST = {
+ _VALID_URL = r'https?://(?:www\.)?dlive\.tv/p/(?P<uploader_id>.+?)\+(?P<id>[^/?#&]+)'
+ _TESTS = [{
'url': 'https://dlive.tv/p/pdp+3mTzOl4WR',
'info_dict': {
'id': '3mTzOl4WR',
@@ -20,7 +20,10 @@ class DLiveVODIE(InfoExtractor):
'timestamp': 1562011015,
'uploader_id': 'pdp',
}
- }
+ }, {
+ 'url': 'https://dlive.tv/p/pdpreplay+D-RD-xSZg',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
uploader_id, vod_id = re.match(self._VALID_URL, url).groups()