Skip to content

Commit

Permalink
[dlive] Relax _VALID_URL (#21909)
Browse files Browse the repository at this point in the history
  • Loading branch information
CeruleanSky authored and Lamieur committed Aug 3, 2019
1 parent ab3533e commit 4865545
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions youtube_dl/extractor/dlive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

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',
Expand All @@ -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()
Expand Down

0 comments on commit 4865545

Please sign in to comment.