mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 18:59:32 +01:00
[scrippsnetworks] add support for www.discovery.com videos
This commit is contained in:
parent
2f7aa680b7
commit
0264903574
@ -106,7 +106,7 @@ def get(key):
|
|||||||
|
|
||||||
|
|
||||||
class ScrippsNetworksIE(InfoExtractor):
|
class ScrippsNetworksIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?(?P<site>cookingchanneltv|(?:diy|food)network|hgtv|travelchannel)\.com/videos/[0-9a-z-]+-(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?(?P<site>cookingchanneltv|discovery|(?:diy|food)network|hgtv|travelchannel)\.com/videos/[0-9a-z-]+-(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.cookingchanneltv.com/videos/the-best-of-the-best-0260338',
|
'url': 'https://www.cookingchanneltv.com/videos/the-best-of-the-best-0260338',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -131,9 +131,13 @@ class ScrippsNetworksIE(InfoExtractor):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'https://www.travelchannel.com/videos/two-climates-one-bag-5302184',
|
'url': 'https://www.travelchannel.com/videos/two-climates-one-bag-5302184',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.travelchannel.com/videos/two-climates-one-bag-5302184',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
_ACCOUNT_MAP = {
|
_ACCOUNT_MAP = {
|
||||||
'cookingchanneltv': 2433005105,
|
'cookingchanneltv': 2433005105,
|
||||||
|
'discovery': 2706091867,
|
||||||
'diynetwork': 2433004575,
|
'diynetwork': 2433004575,
|
||||||
'foodnetwork': 2433005105,
|
'foodnetwork': 2433005105,
|
||||||
'hgtv': 2433004575,
|
'hgtv': 2433004575,
|
||||||
|
Loading…
Reference in New Issue
Block a user