[uktvplay] Support domain without .uktv
authordirkf <fieldhouse@gmx.net>
Fri, 19 Aug 2022 18:11:08 +0000 (19:11 +0100)
committerdirkf <fieldhouse@gmx.net>
Fri, 19 Aug 2022 18:11:08 +0000 (19:11 +0100)
youtube_dl/extractor/uktvplay.py

index f28fd514db66217a99800657ae990829d240d71b..9ef9638cde98ac3079af4f8c60e49fab39b33970 100644 (file)
@@ -5,7 +5,7 @@ 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=|([^/]+/)*watch-online/)(?P<id>\d+)'
     _TESTS = [{
         'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001',
         'info_dict': {