From 8be4cc2dab1373944dbada6a9bf92cadee69f4d9 Mon Sep 17 00:00:00 2001 From: aarubui Date: Thu, 10 Oct 2024 12:52:26 +1100 Subject: [PATCH] [ie/uktvplay] DRM protected --- supportedsites.md | 1 - yt_dlp/extractor/_extractors.py | 1 - yt_dlp/extractor/uktvplay.py | 36 --------------------------------- yt_dlp/extractor/unsupported.py | 1 + 4 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 yt_dlp/extractor/uktvplay.py diff --git a/supportedsites.md b/supportedsites.md index e23d395fde..2b4dac63c9 100644 --- a/supportedsites.md +++ b/supportedsites.md @@ -1569,7 +1569,6 @@ # Supported sites - **UFCArabia**: [*ufcarabia*](## "netrc machine") - **UFCTV**: [*ufctv*](## "netrc machine") - **ukcolumn**: (**Currently broken**) - - **UKTVPlay** - **umg:de**: Universal Music Deutschland (**Currently broken**) - **Unistra** - **Unity**: (**Currently broken**) diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 4b1f4c316d..195e171704 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -2248,7 +2248,6 @@ UFCArabiaIE, ) from .ukcolumn import UkColumnIE -from .uktvplay import UKTVPlayIE from .umg import UMGDeIE from .unistra import UnistraIE from .unity import UnityIE diff --git a/yt_dlp/extractor/uktvplay.py b/yt_dlp/extractor/uktvplay.py deleted file mode 100644 index 9abe3436f2..0000000000 --- a/yt_dlp/extractor/uktvplay.py +++ /dev/null @@ -1,36 +0,0 @@ -from .common import InfoExtractor - - -class UKTVPlayIE(InfoExtractor): - _VALID_URL = r'https?://uktvplay\.(?:uktv\.)?co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*)(?P\d+)' - _TESTS = [{ - 'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001', - 'info_dict': { - 'id': '2117008346001', - 'ext': 'mp4', - 'title': 'Pincers', - 'description': 'Pincers', - 'uploader_id': '1242911124001', - 'upload_date': '20130124', - 'timestamp': 1359049267, - }, - 'params': { - # m3u8 download - 'skip_download': True, - }, - 'expected_warnings': ['Failed to download MPD manifest'], - }, { - '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' - - def _real_extract(self, url): - video_id = self._match_id(url) - return self.url_result( - self.BRIGHTCOVE_URL_TEMPLATE % video_id, - 'BrightcoveNew', video_id) diff --git a/yt_dlp/extractor/unsupported.py b/yt_dlp/extractor/unsupported.py index 8b7ec1dd96..0ecb55586b 100644 --- a/yt_dlp/extractor/unsupported.py +++ b/yt_dlp/extractor/unsupported.py @@ -50,6 +50,7 @@ class KnownDRMIE(UnsupportedInfoExtractor): r'music\.amazon\.(?:\w{2}\.)?\w+', r'(?:watch|front)\.njpwworld\.com', r'qub\.ca/vrai', + r'https?://(?:uktvplay(?:\.uktv)?|u)\.co\.uk', ) _TESTS = [{