From 8c65222d48132a9ed184241766494f9010bbc6fb Mon Sep 17 00:00:00 2001 From: subrat-lima Date: Wed, 11 Sep 2024 11:29:56 +0530 Subject: [PATCH] [ie/spreaker] fix duplicate url pattern match --- yt_dlp/extractor/spreaker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/spreaker.py b/yt_dlp/extractor/spreaker.py index 3e2084a166..dffb9e0f9e 100644 --- a/yt_dlp/extractor/spreaker.py +++ b/yt_dlp/extractor/spreaker.py @@ -159,7 +159,7 @@ def _real_extract(self, url): class SpreakerShowPageIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P[^/?#&]+)(?!/episodes/feed)' + _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P[^/?#&]+)(?:[?#]|$)(?!/episodes/feed)' _TESTS = [{ 'url': 'https://www.spreaker.com/show/success-with-music', 'info_dict': { @@ -195,7 +195,7 @@ def _real_extract(self, url): class SpreakerFeedPageIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P[\d]+)/episodes/feed' + _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P\d+)/episodes/feed' _TESTS = [{ 'url': 'https://www.spreaker.com/show/5887186/episodes/feed', 'info_dict': {