From 22b22b7d5c9dafa1d3f2dac25522bdd8b4091de4 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 7 Aug 2022 20:40:36 +0530 Subject: [PATCH] [extractor/WASDTV:record] Fix `_VALID_URL` --- yt_dlp/extractor/wasdtv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/wasdtv.py b/yt_dlp/extractor/wasdtv.py index bf1ad65b2..bad5ccb99 100644 --- a/yt_dlp/extractor/wasdtv.py +++ b/yt_dlp/extractor/wasdtv.py @@ -95,7 +95,7 @@ class WASDTVStreamIE(WASDTVBaseIE): class WASDTVRecordIE(WASDTVBaseIE): IE_NAME = 'wasdtv:record' - _VALID_URL = r'https?://wasd\.tv/[^/#?]+/videos\?record=(?P\d+)$' + _VALID_URL = r'https?://wasd\.tv/[^/#?]+(?:/videos)?\?record=(?P\d+)$' _TESTS = [{ 'url': 'https://wasd.tv/spacemita/videos?record=907755', 'md5': 'c9899dd85be4cc997816ff9f9ca516ce', @@ -110,6 +110,9 @@ class WASDTVRecordIE(WASDTVBaseIE): 'is_live': False, 'view_count': int, }, + }, { + 'url': 'https://wasd.tv/spacemita?record=907755', + 'only_matching': True, }] def _get_container(self, url):