0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[dlive] restrict DLive Stream _VALID_URL regex

This commit is contained in:
Remita Amine 2019-07-13 14:11:57 +01:00
parent 4a71ef6da6
commit b99f11a56b

View file

@ -55,7 +55,7 @@ def _real_extract(self, url):
class DLiveStreamIE(InfoExtractor):
IE_NAME = 'dlive:stream'
_VALID_URL = r'https?://(?:www\.)?dlive\.tv/(?P<id>[\w.-]+)'
_VALID_URL = r'https?://(?:www\.)?dlive\.tv/(?!p/)(?P<id>[\w.-]+)'
def _real_extract(self, url):
display_name = self._match_id(url)