From 5e11530470a647368c224a002b49642b53fe6bf8 Mon Sep 17 00:00:00 2001 From: doe1080 <98906116+doe1080@users.noreply.github.com> Date: Thu, 17 Jul 2025 12:53:30 +0900 Subject: [PATCH] DBTVIE --- yt_dlp/extractor/dbtv.py | 17 +++++++++++++++-- yt_dlp/extractor/generic.py | 14 -------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/yt_dlp/extractor/dbtv.py b/yt_dlp/extractor/dbtv.py index 795fbacc4..946b64742 100644 --- a/yt_dlp/extractor/dbtv.py +++ b/yt_dlp/extractor/dbtv.py @@ -12,13 +12,13 @@ class DBTVIE(InfoExtractor): 'ext': 'mp4', 'title': 'Skulle teste ut fornøyelsespark, men kollegaen var bare opptatt av bikinikroppen', 'description': 'md5:49cc8370e7d66e8a2ef15c3b4631fd3f', - 'thumbnail': r're:https?://.*\.jpg', + 'thumbnail': r're:https?://.+\.jpg', 'upload_date': '20160916', 'duration': 69, 'uploader_id': 'UCk5pvsyZJoYJBd7_oFPTlRQ', 'uploader': 'Dagbladet', }, - 'add_ie': ['Youtube'], + 'skip': 'Invalid URL', }, { 'url': 'https://www.dagbladet.no/video/embed/xlGmyIeN9Jo/?autoplay=false', 'only_matching': True, @@ -26,6 +26,19 @@ class DBTVIE(InfoExtractor): 'url': 'https://www.dagbladet.no/video/truer-iran-bor-passe-dere/PalfB2Cw', 'only_matching': True, }] + _WEBPAGE_TESTS = [{ + 'url': 'https://www.dagbladet.no/nyheter/rekordstort-russisk-angrep/83325693', + 'info_dict': { + 'id': '1HW7fYry', + 'ext': 'mp4', + 'title': 'Putin taler - så skjer dette', + 'description': 'md5:3e8bacee33de861a9663d9a3fcc54e5e', + 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+', + 'timestamp': 1751043600, + 'upload_date': '20250627', + }, + 'skip': 'IE fix required; embed detection', + }] def _real_extract(self, url): display_id, video_id = self._match_valid_url(url).groups() diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 101ff8905..c0cd46aff 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -713,20 +713,6 @@ class GenericIE(InfoExtractor): 'uploader_id': 'x19qlwr', 'view_count': int, }, - }, { - # 🔧60 - # DBTVIE - 'url': 'https://www.dagbladet.no/nyheter/rekordstort-russisk-angrep/83325693', - 'info_dict': { - 'id': '1HW7fYry', - 'ext': 'mp4', - 'title': 'Putin taler - så skjer dette', - 'description': 'md5:3e8bacee33de861a9663d9a3fcc54e5e', - 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+', - 'timestamp': 1751043600, - 'upload_date': '20250627', - }, - 'skip': 'IE fix required; embed detection', }, { # 🔍62 # FacebookIE; iframe embed