diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-07-25 17:00:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 22:00:58 +0000 |
commit | 0b7728618417e1aa382722a4d29b916b594d4459 (patch) | |
tree | b6b08e279dbfce4a121fc9ccad6c5811aecdd98a | |
parent | 6b1e430d8e4af56cd4fcb8bdc00fca9b79356464 (diff) |
[ie/DiscoveryPlus] Support olympics URLs (#10566)
Closes #10564
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/dplay.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/dplay.py b/yt_dlp/extractor/dplay.py index e9f9357ad..cdf84c52d 100644 --- a/yt_dlp/extractor/dplay.py +++ b/yt_dlp/extractor/dplay.py @@ -934,7 +934,7 @@ class TLCIE(DiscoveryPlusBaseIE): class DiscoveryPlusIE(DiscoveryPlusBaseIE): - _VALID_URL = r'https?://(?:www\.)?discoveryplus\.com/(?!it/)(?:(?P<country>[a-z]{2})/)?video(?:/sport)?' + DPlayBaseIE._PATH_REGEX + _VALID_URL = r'https?://(?:www\.)?discoveryplus\.com/(?!it/)(?:(?P<country>[a-z]{2})/)?video(?:/sport|/olympics)?' + DPlayBaseIE._PATH_REGEX _TESTS = [{ 'url': 'https://www.discoveryplus.com/video/property-brothers-forever-home/food-and-family', 'info_dict': { @@ -958,6 +958,9 @@ class DiscoveryPlusIE(DiscoveryPlusBaseIE): }, { 'url': 'https://www.discoveryplus.com/gb/video/sport/eurosport-1-british-eurosport-1-british-sport/6-hours-of-spa-review', 'only_matching': True, + }, { + 'url': 'https://www.discoveryplus.com/gb/video/olympics/dplus-sport-dplus-sport-sport/rugby-sevens-australia-samoa', + 'only_matching': True, }] _PRODUCT = None |