mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 10:31:29 +00:00
[ie/atptour] refactored url pattern for better extensibility
This commit is contained in:
parent
2fe0226c0f
commit
2c0244cb2f
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
class ATPTourVideoIE(InfoExtractor):
|
class ATPTourVideoIE(InfoExtractor):
|
||||||
IE_NAME = 'atptour:video'
|
IE_NAME = 'atptour:video'
|
||||||
_VALID_URL = r'https?://(?:www\.)?atptour\.com/e[ns]/video/(?P<id>[\w-]+)'
|
_VALID_URL = r'https?://(?:www\.)?atptour\.com/(?:en|es)/video/(?P<id>[\w-]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.atptour.com/en/video/challenger-highlights-nishikori-wins-in-como-2024',
|
'url': 'https://www.atptour.com/en/video/challenger-highlights-nishikori-wins-in-como-2024',
|
||||||
'md5': '4721002227d98fe89afafa40eba3068d',
|
'md5': '4721002227d98fe89afafa40eba3068d',
|
||||||
|
@ -75,7 +75,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
class ATPTourNewsIE(InfoExtractor):
|
class ATPTourNewsIE(InfoExtractor):
|
||||||
IE_NAME = 'atptour:news'
|
IE_NAME = 'atptour:news'
|
||||||
_VALID_URL = r'https?://(?:www\.)?atptour\.com/e[ns]/news/(?P<id>[\w-]+)'
|
_VALID_URL = r'https?://(?:www\.)?atptour\.com/(?:en|es)/news/(?P<id>[\w-]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.atptour.com/en/news/sinner-zverev-cincinnati-2024-sf',
|
'url': 'https://www.atptour.com/en/news/sinner-zverev-cincinnati-2024-sf',
|
||||||
'playlist_mincount': 2,
|
'playlist_mincount': 2,
|
||||||
|
|
Loading…
Reference in a new issue