]> jfr.im git - yt-dlp.git/commitdiff
[extractor/mediaset] Improve `_VALID_URL`
authorpukkandan <redacted>
Sun, 26 Jun 2022 13:19:34 +0000 (18:49 +0530)
committerpukkandan <redacted>
Sun, 26 Jun 2022 13:19:34 +0000 (18:49 +0530)
Fixes https://github.com/yt-dlp/yt-dlp/issues/4141#issuecomment-1166521057

yt_dlp/extractor/mediaset.py

index 99fa75e4f900276f8939d37da1ed7d3e7f8b7c9e..f396c1bd339d138d05d79b8af124ba877799cbc8 100644 (file)
@@ -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<id>[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