From 17504f253564cfad86244de2b6346d07d2300ca5 Mon Sep 17 00:00:00 2001 From: fireattack Date: Sun, 16 Mar 2025 00:14:01 +0800 Subject: [PATCH] [ie/openrec] Fix `_VALID_URL` (#12608) Authored by: fireattack --- yt_dlp/extractor/openrec.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/openrec.py b/yt_dlp/extractor/openrec.py index b4f1c7d85..4c19ab684 100644 --- a/yt_dlp/extractor/openrec.py +++ b/yt_dlp/extractor/openrec.py @@ -67,7 +67,7 @@ class OpenRecBaseIE(InfoExtractor): class OpenRecIE(OpenRecBaseIE): IE_NAME = 'openrec' - _VALID_URL = r'https?://(?:www\.)?openrec\.tv/live/(?P[^/]+)' + _VALID_URL = r'https?://(?:www\.)?openrec\.tv/live/(?P[^/?#]+)' _TESTS = [{ 'url': 'https://www.openrec.tv/live/2p8v31qe4zy', 'only_matching': True, @@ -85,7 +85,7 @@ class OpenRecIE(OpenRecBaseIE): class OpenRecCaptureIE(OpenRecBaseIE): IE_NAME = 'openrec:capture' - _VALID_URL = r'https?://(?:www\.)?openrec\.tv/capture/(?P[^/]+)' + _VALID_URL = r'https?://(?:www\.)?openrec\.tv/capture/(?P[^/?#]+)' _TESTS = [{ 'url': 'https://www.openrec.tv/capture/l9nk2x4gn14', 'only_matching': True, @@ -129,7 +129,7 @@ class OpenRecCaptureIE(OpenRecBaseIE): class OpenRecMovieIE(OpenRecBaseIE): IE_NAME = 'openrec:movie' - _VALID_URL = r'https?://(?:www\.)?openrec\.tv/movie/(?P[^/]+)' + _VALID_URL = r'https?://(?:www\.)?openrec\.tv/movie/(?P[^/?#]+)' _TESTS = [{ 'url': 'https://www.openrec.tv/movie/nqz5xl5km8v', 'info_dict': { @@ -141,6 +141,9 @@ class OpenRecMovieIE(OpenRecBaseIE): 'uploader_id': 'taiki_to_kazuhiro', 'timestamp': 1638856800, }, + }, { + 'url': 'https://www.openrec.tv/movie/2p8vvex548y?playlist_id=98brq96vvsgn2nd', + 'only_matching': True, }] def _real_extract(self, url):