From 0cd893924227b575cf34a15d0f632aa9cc7280b2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 Nov 2024 17:01:49 +0000 Subject: [PATCH] [CI] auto update yt_dlp to upstream commit fe70f20aedf528fdee332131bc9b6710e54e6f10 --- lib/yt_dlp/YoutubeDL.py | 1 + lib/yt_dlp/extractor/dailymotion.py | 22 +++++++++++++++- lib/yt_dlp/extractor/facebook.py | 5 +++- lib/yt_dlp/extractor/stripchat.py | 25 ++++++++---------- lib/yt_dlp/extractor/youtube.py | 40 +++++++++++++++++++---------- lib/yt_dlp_version | 2 +- 6 files changed, 64 insertions(+), 31 deletions(-) diff --git a/lib/yt_dlp/YoutubeDL.py b/lib/yt_dlp/YoutubeDL.py index 749de5d4e..a9a8e4133 100644 --- a/lib/yt_dlp/YoutubeDL.py +++ b/lib/yt_dlp/YoutubeDL.py @@ -1947,6 +1947,7 @@ def _playlist_infodict(ie_result, strict=False, **kwargs): 'playlist_uploader_id': ie_result.get('uploader_id'), 'playlist_channel': ie_result.get('channel'), 'playlist_channel_id': ie_result.get('channel_id'), + 'playlist_webpage_url': ie_result.get('webpage_url'), **kwargs, } if strict: diff --git a/lib/yt_dlp/extractor/dailymotion.py b/lib/yt_dlp/extractor/dailymotion.py index cb1453d3f..423c11c57 100644 --- a/lib/yt_dlp/extractor/dailymotion.py +++ b/lib/yt_dlp/extractor/dailymotion.py @@ -261,6 +261,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor): 'tags': [], 'view_count': int, 'like_count': int, + 'thumbnail': r're:https://\w+.dmcdn.net/v/WnEY61cmvMxt2Fi6d/x1080', }, }, { # https://geo.dailymotion.com/player/xf7zn.html?playlist=x7wdsj @@ -288,6 +289,25 @@ class DailymotionIE(DailymotionBaseInfoExtractor): 'description': 'À bord du « véloto », l’alternative à la voiture pour la campagne', 'tags': ['biclou', 'vélo', 'véloto', 'campagne', 'voiture', 'environnement', 'véhicules intermédiaires'], }, + }, { + # https://geo.dailymotion.com/player/xry80.html?video=x8vu47w + 'url': 'https://www.metatube.com/en/videos/546765/This-frogs-decorates-Christmas-tree/', + 'info_dict': { + 'id': 'x8vu47w', + 'ext': 'mp4', + 'like_count': int, + 'uploader': 'Metatube', + 'thumbnail': r're:https://\w+.dmcdn.net/v/W1G_S1coGSFTfkTeR/x1080', + 'upload_date': '20240326', + 'view_count': int, + 'timestamp': 1711496732, + 'age_limit': 0, + 'uploader_id': 'x2xpy74', + 'title': 'Está lindas ranitas ponen su arbolito', + 'duration': 28, + 'description': 'Que lindura', + 'tags': [], + }, }] _GEO_BYPASS = False _COMMON_MEDIA_FIELDS = '''description @@ -302,7 +322,7 @@ def _extract_embed_urls(cls, url, webpage): yield from super()._extract_embed_urls(url, webpage) for mobj in re.finditer( r'(?s)DM\.player\([^,]+,\s*{.*?video[\'"]?\s*:\s*["\']?(?P[0-9a-zA-Z]+).+?}\s*\);', webpage): - yield from 'https://www.dailymotion.com/embed/video/' + mobj.group('id') + yield 'https://www.dailymotion.com/embed/video/' + mobj.group('id') for mobj in re.finditer( r'(?s)