[ie/DiscoveryPlusItaly] Support sport and olympics URLs (#10655)

Closes #10654
Authored by: bashonly
pull/10907/head
bashonly 4 months ago committed by GitHub
parent 919540a964
commit e7d73bc453
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1147,13 +1147,19 @@ class DiscoveryPlusShowBaseIE(DPlayBaseIE):
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…
Cancel
Save