From 2c0244cb2f9353a8c4ac8b7f5aee94de457aab0b Mon Sep 17 00:00:00 2001 From: subrat-lima Date: Sun, 1 Sep 2024 21:46:17 +0530 Subject: [PATCH] [ie/atptour] refactored url pattern for better extensibility --- yt_dlp/extractor/atptour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/atptour.py b/yt_dlp/extractor/atptour.py index 56c4aba788..eb945b6871 100644 --- a/yt_dlp/extractor/atptour.py +++ b/yt_dlp/extractor/atptour.py @@ -7,7 +7,7 @@ class ATPTourVideoIE(InfoExtractor): IE_NAME = 'atptour:video' - _VALID_URL = r'https?://(?:www\.)?atptour\.com/e[ns]/video/(?P[\w-]+)' + _VALID_URL = r'https?://(?:www\.)?atptour\.com/(?:en|es)/video/(?P[\w-]+)' _TESTS = [{ 'url': 'https://www.atptour.com/en/video/challenger-highlights-nishikori-wins-in-como-2024', 'md5': '4721002227d98fe89afafa40eba3068d', @@ -75,7 +75,7 @@ def _real_extract(self, url): class ATPTourNewsIE(InfoExtractor): IE_NAME = 'atptour:news' - _VALID_URL = r'https?://(?:www\.)?atptour\.com/e[ns]/news/(?P[\w-]+)' + _VALID_URL = r'https?://(?:www\.)?atptour\.com/(?:en|es)/news/(?P[\w-]+)' _TESTS = [{ 'url': 'https://www.atptour.com/en/news/sinner-zverev-cincinnati-2024-sf', 'playlist_mincount': 2,