Skip to content

A feature-rich command-line audio/video downloader

[dlive] restrict DLive Stream _VALID_URL regex

Remita Amineb99f11a56b64
diff --git a/youtube_dl/extractor/dlive.py b/youtube_dl/extractor/dlive.py
index b81eaecce2..8787f15a69 100644
--- a/youtube_dl/extractor/dlive.py
+++ b/youtube_dl/extractor/dlive.py
@@ -55,7 +55,7 @@ class DLiveVODIE(InfoExtractor):
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)