[ie/spreaker] fix duplicate url pattern match

This commit is contained in:
subrat-lima 2024-09-11 11:29:56 +05:30
parent 794e3d372c
commit 8c65222d48

View file

@ -159,7 +159,7 @@ def _real_extract(self, url):
class SpreakerShowPageIE(InfoExtractor): class SpreakerShowPageIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P<id>[^/?#&]+)(?!/episodes/feed)' _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P<id>[^/?#&]+)(?:[?#]|$)(?!/episodes/feed)'
_TESTS = [{ _TESTS = [{
'url': 'https://www.spreaker.com/show/success-with-music', 'url': 'https://www.spreaker.com/show/success-with-music',
'info_dict': { 'info_dict': {
@ -195,7 +195,7 @@ def _real_extract(self, url):
class SpreakerFeedPageIE(InfoExtractor): class SpreakerFeedPageIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P<id>[\d]+)/episodes/feed' _VALID_URL = r'https?://(?:www\.)?spreaker\.com/show/(?P<id>\d+)/episodes/feed'
_TESTS = [{ _TESTS = [{
'url': 'https://www.spreaker.com/show/5887186/episodes/feed', 'url': 'https://www.spreaker.com/show/5887186/episodes/feed',
'info_dict': { 'info_dict': {