From e08f72e6759fb6b1102521f0bdb9457038ef7c06 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 26 Jun 2022 18:49:34 +0530 Subject: [PATCH] [extractor/mediaset] Improve `_VALID_URL` Fixes https://github.com/yt-dlp/yt-dlp/issues/4141#issuecomment-1166521057 --- yt_dlp/extractor/mediaset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/mediaset.py b/yt_dlp/extractor/mediaset.py index 99fa75e4f9..f396c1bd33 100644 --- a/yt_dlp/extractor/mediaset.py +++ b/yt_dlp/extractor/mediaset.py @@ -23,7 +23,7 @@ class MediasetIE(ThePlatformBaseIE): (?:\w+\.)+mediaset\.it/ (?: (?:video|on-demand|movie)/(?:[^/]+/)+[^/]+_| - player/index\.html\?.*?\bprogramGuid= + player/(?:v\d+/)?index\.html\?.*?\bprogramGuid= ) )(?P[0-9A-Z]{16,}) ''' @@ -162,6 +162,9 @@ class MediasetIE(ThePlatformBaseIE): }, { 'url': 'https://mediasetinfinity.mediaset.it/video/braveandbeautiful/episodio-113_F310948005000402', 'only_matching': True, + }, { + 'url': 'https://static3.mediasetplay.mediaset.it/player/v2/index.html?partnerId=wittytv&configId=&programGuid=FD00000000153323', + 'only_matching': True, }] @staticmethod