From c0965da44b5df6fadc60305416610016279ec9da Mon Sep 17 00:00:00 2001 From: sepro Date: Tue, 26 Nov 2024 02:00:52 +0100 Subject: [PATCH] Simplify regex --- yt_dlp/extractor/rtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/rtp.py b/yt_dlp/extractor/rtp.py index ca2459c65..8f8e56b6c 100644 --- a/yt_dlp/extractor/rtp.py +++ b/yt_dlp/extractor/rtp.py @@ -17,7 +17,7 @@ class RTPIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/(?:[^/#?]+/)?p(?P[\d]+)/(?P[e\d]+)' + _VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/(?:[^/#?]+/)?p(?P\d+)/(?Pe\d+)' _TESTS = [{ 'url': 'http://www.rtp.pt/play/p405/e174042/paixoes-cruzadas', 'md5': 'e736ce0c665e459ddb818546220b4ef8',