1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 07:02:52 +08:00

Added foodnetwork and hgtv to be in discovery

This commit is contained in:
VietTPham 2018-10-24 08:46:46 -07:00
parent b99b0bcfa0
commit 946a70f42c
2 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@ from ..compat import compat_HTTPError
class DiscoveryIE(DiscoveryGoBaseIE): class DiscoveryIE(DiscoveryGoBaseIE):
_VALID_URL = r'''(?x)https?://(?:www\.)?(?P<site> _VALID_URL = r'''(?x)https?://(?:www\.|watch\.)?(?P<site>
discovery| discovery|
investigationdiscovery| investigationdiscovery|
discoverylife| discoverylife|
@ -26,7 +26,9 @@ class DiscoveryIE(DiscoveryGoBaseIE):
destinationamerica| destinationamerica|
sciencechannel| sciencechannel|
tlc| tlc|
velocity velocity|
foodnetwork|
hgtv
)\.com(?P<path>/tv-shows/[^/]+/(?:video|full-episode)s/(?P<id>[^./?#]+))''' )\.com(?P<path>/tv-shows/[^/]+/(?:video|full-episode)s/(?P<id>[^./?#]+))'''
_TESTS = [{ _TESTS = [{
'url': 'https://www.discovery.com/tv-shows/cash-cab/videos/dave-foley', 'url': 'https://www.discovery.com/tv-shows/cash-cab/videos/dave-foley',

View File

@ -19,7 +19,7 @@ class ScrippsNetworksWatchIE(AWSIE):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?:// https?://
watch\. watch\.
(?P<site>hgtv|foodnetwork|travelchannel|diynetwork|cookingchanneltv|geniuskitchen)\.com/ (?P<site>travelchannel|diynetwork|cookingchanneltv|geniuskitchen)\.com/
(?: (?:
player\.[A-Z0-9]+\.html\#| player\.[A-Z0-9]+\.html\#|
show/(?:[^/]+/){2}| show/(?:[^/]+/){2}|