mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[ie/DiscoveryPlusItaly] Support sport and olympics URLs (#10655)
Closes #10654 Authored by: bashonly
This commit is contained in:
parent
919540a964
commit
e7d73bc453
1 changed files with 7 additions and 1 deletions
|
@ -1147,13 +1147,19 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
|
|
||||||
class DiscoveryPlusItalyIE(DiscoveryPlusBaseIE):
|
class DiscoveryPlusItalyIE(DiscoveryPlusBaseIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?discoveryplus\.com/it/video' + DPlayBaseIE._PATH_REGEX
|
_VALID_URL = r'https?://(?:www\.)?discoveryplus\.com/it/video(?:/sport|/olympics)?' + DPlayBaseIE._PATH_REGEX
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.discoveryplus.com/it/video/i-signori-della-neve/stagione-2-episodio-1-i-preparativi',
|
'url': 'https://www.discoveryplus.com/it/video/i-signori-della-neve/stagione-2-episodio-1-i-preparativi',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.discoveryplus.com/it/video/super-benny/trailer',
|
'url': 'https://www.discoveryplus.com/it/video/super-benny/trailer',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.discoveryplus.com/it/video/olympics/dplus-sport-dplus-sport-sport/water-polo-greece-italy',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.discoveryplus.com/it/video/sport/dplus-sport-dplus-sport-sport/lisa-vittozzi-allinferno-e-ritorno',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
_PRODUCT = 'dplus_it'
|
_PRODUCT = 'dplus_it'
|
||||||
|
|
Loading…
Reference in a new issue