From 946a70f42c37c7a1a4466e2ef3dcaf25b03a466c Mon Sep 17 00:00:00 2001 From: VietTPham Date: Wed, 24 Oct 2018 08:46:46 -0700 Subject: [PATCH] Added foodnetwork and hgtv to be in discovery --- youtube_dl/extractor/discovery.py | 6 ++++-- youtube_dl/extractor/scrippsnetworks.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/discovery.py b/youtube_dl/extractor/discovery.py index 3589bd42831..e8ed8aab67a 100644 --- a/youtube_dl/extractor/discovery.py +++ b/youtube_dl/extractor/discovery.py @@ -17,7 +17,7 @@ class DiscoveryIE(DiscoveryGoBaseIE): - _VALID_URL = r'''(?x)https?://(?:www\.)?(?P + _VALID_URL = r'''(?x)https?://(?:www\.|watch\.)?(?P discovery| investigationdiscovery| discoverylife| @@ -26,7 +26,9 @@ class DiscoveryIE(DiscoveryGoBaseIE): destinationamerica| sciencechannel| tlc| - velocity + velocity| + foodnetwork| + hgtv )\.com(?P/tv-shows/[^/]+/(?:video|full-episode)s/(?P[^./?#]+))''' _TESTS = [{ 'url': 'https://www.discovery.com/tv-shows/cash-cab/videos/dave-foley', diff --git a/youtube_dl/extractor/scrippsnetworks.py b/youtube_dl/extractor/scrippsnetworks.py index 4023aeef81e..cb6e9505aa2 100644 --- a/youtube_dl/extractor/scrippsnetworks.py +++ b/youtube_dl/extractor/scrippsnetworks.py @@ -19,7 +19,7 @@ class ScrippsNetworksWatchIE(AWSIE): _VALID_URL = r'''(?x) https?:// watch\. - (?Phgtv|foodnetwork|travelchannel|diynetwork|cookingchanneltv|geniuskitchen)\.com/ + (?Ptravelchannel|diynetwork|cookingchanneltv|geniuskitchen)\.com/ (?: player\.[A-Z0-9]+\.html\#| show/(?:[^/]+/){2}|