aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/uktvplay.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/uktvplay.py')
-rw-r--r--hypervideo_dl/extractor/uktvplay.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/hypervideo_dl/extractor/uktvplay.py b/hypervideo_dl/extractor/uktvplay.py
index f28fd51..ab22a8e 100644
--- a/hypervideo_dl/extractor/uktvplay.py
+++ b/hypervideo_dl/extractor/uktvplay.py
@@ -1,11 +1,8 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
from .common import InfoExtractor
class UKTVPlayIE(InfoExtractor):
- _VALID_URL = r'https?://uktvplay\.uktv\.co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*watch-online/)(?P<id>\d+)'
+ _VALID_URL = r'https?://uktvplay\.(?:uktv\.)?co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*)(?P<id>\d+)'
_TESTS = [{
'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001',
'info_dict': {
@@ -25,6 +22,9 @@ class UKTVPlayIE(InfoExtractor):
}, {
'url': 'https://uktvplay.uktv.co.uk/shows/africa/watch-online/5983349675001',
'only_matching': True,
+ }, {
+ 'url': 'https://uktvplay.co.uk/shows/hornby-a-model-world/series-1/episode-1/6276739790001?autoplaying=true',
+ 'only_matching': True,
}]
# BRIGHTCOVE_URL_TEMPLATE = 'https://players.brightcove.net/1242911124001/OrCyvJ2gyL_default/index.html?videoId=%s'
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/1242911124001/H1xnMOqP_default/index.html?videoId=%s'