aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-08 20:40:06 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-09 09:14:21 +0530
commit385ffb467b2285e85a2a5495b90314ba1f8e0700 (patch)
tree611cee4ce35b0454c00541b3277c57ddfa9083c4
parent5f8ea7e0d83d9096d30e0c6554a51cb4cb678522 (diff)
[wistia] Fix `_VALID_URL`
Closes #2866 Authored by: dirkf
-rw-r--r--yt_dlp/extractor/wistia.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/wistia.py b/yt_dlp/extractor/wistia.py
index 8f0e7949b..3cbcb4aa0 100644
--- a/yt_dlp/extractor/wistia.py
+++ b/yt_dlp/extractor/wistia.py
@@ -12,7 +12,7 @@ from ..utils import (
class WistiaBaseIE(InfoExtractor):
_VALID_ID_REGEX = r'(?P<id>[a-z0-9]{10})'
- _VALID_URL_BASE = r'https?://(?:fast\.)?wistia\.(?:net|com)/embed/'
+ _VALID_URL_BASE = r'https?://(?:\w+\.)?wistia\.(?:net|com)/(?:embed/)?'
_EMBED_BASE_URL = 'http://fast.wistia.com/embed/'
def _download_embed_config(self, config_type, config_id, referer):
@@ -173,7 +173,7 @@ class WistiaIE(WistiaBaseIE):
class WistiaPlaylistIE(WistiaBaseIE):
- _VALID_URL = r'%splaylists/%s' % (WistiaIE._VALID_URL_BASE, WistiaIE._VALID_ID_REGEX)
+ _VALID_URL = r'%splaylists/%s' % (WistiaBaseIE._VALID_URL_BASE, WistiaBaseIE._VALID_ID_REGEX)
_TEST = {
'url': 'https://fast.wistia.net/embed/playlists/aodt9etokc',