aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/scrippsnetworks.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-15 02:01:16 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-15 02:01:16 +0700
commit57eb45b11110bdc6d99b02b738129565239a12b0 (patch)
tree01a6e3fec2f6c823b1262945b6ea1cc3b6468ef3 /youtube_dl/extractor/scrippsnetworks.py
parentb21ab85088345323d1e6d988b2cdce8e02fe6bdf (diff)
[scrippsnetworks:watch] Add support for geniuskitchen.com
Diffstat (limited to 'youtube_dl/extractor/scrippsnetworks.py')
-rw-r--r--youtube_dl/extractor/scrippsnetworks.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/youtube_dl/extractor/scrippsnetworks.py b/youtube_dl/extractor/scrippsnetworks.py
index 30bb31d69..411fef84c 100644
--- a/youtube_dl/extractor/scrippsnetworks.py
+++ b/youtube_dl/extractor/scrippsnetworks.py
@@ -20,10 +20,11 @@ class ScrippsNetworksWatchIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://
watch\.
- (?P<site>hgtv|foodnetwork|travelchannel|diynetwork|cookingchanneltv)\.com/
+ (?P<site>hgtv|foodnetwork|travelchannel|diynetwork|cookingchanneltv|geniuskitchen)\.com/
(?:
player\.[A-Z0-9]+\.html\#|
- show/(?:[^/]+/){2}
+ show/(?:[^/]+/){2}|
+ player/
)
(?P<id>\d+)
'''
@@ -49,6 +50,9 @@ class ScrippsNetworksWatchIE(InfoExtractor):
}, {
'url': 'http://watch.diynetwork.com/player.HNT.html#2656646',
'only_matching': True,
+ }, {
+ 'url': 'http://watch.geniuskitchen.com/player/3787617/Ample-Hills-Ice-Cream-Bike/',
+ 'only_matching': True,
}]
_SNI_TABLE = {
@@ -57,7 +61,7 @@ class ScrippsNetworksWatchIE(InfoExtractor):
'foodnetwork': 'food',
'cookingchanneltv': 'cook',
'travelchannel': 'trav',
- 'geniuskitchen': 'geniuskitchen',
+ 'geniuskitchen': 'genius',
}
_SNI_HOST = 'web.api.video.snidigital.com'