aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordirkf <[email protected]>2022-06-26 14:18:33 +0100
committerdirkf <[email protected]>2022-06-26 14:24:06 +0100
commita03b9775d544b06a5b4f2aa630214c7c22fc2229 (patch)
treecdc520cf6a9eb58527b21f37f3f3adbcbae3480b
parent8a158a936c8b002ef536e9e2b778ded02c09c0fa (diff)
downloadyoutube-dl-a03b9775d544b06a5b4f2aa630214c7c22fc2229.tar.gz
youtube-dl-a03b9775d544b06a5b4f2aa630214c7c22fc2229.zip
[Mediaset] Support player version number in URL pattern
Ref: https://github.com/yt-dlp/yt-dlp/issues/4141
-rw-r--r--youtube_dl/extractor/mediaset.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mediaset.py b/youtube_dl/extractor/mediaset.py
index 2c16fc9e2..20048c6ab 100644
--- a/youtube_dl/extractor/mediaset.py
+++ b/youtube_dl/extractor/mediaset.py
@@ -24,7 +24,7 @@ class MediasetIE(ThePlatformBaseIE):
(?:(?:www|static3)\.)?mediasetplay\.mediaset\.it/
(?:
(?:video|on-demand|movie)/(?:[^/]+/)+[^/]+_|
- player/index\.html\?.*?\bprogramGuid=
+ player(?:/v\d+)?/index\.html\?.*?\bprogramGuid=
)
)(?P<id>[0-9A-Z]{16,})
'''
@@ -74,6 +74,10 @@ class MediasetIE(ThePlatformBaseIE):
'url': 'https://static3.mediasetplay.mediaset.it/player/index.html?appKey=5ad3966b1de1c4000d5cec48&programGuid=FAFU000000665104&id=665104',
'only_matching': True,
}, {
+ # embedUrl (from https://www.wittytv.it/amici/est-ce-que-tu-maimes-gabriele-5-dicembre-copia/)
+ 'url': 'https://static3.mediasetplay.mediaset.it/player/v2/index.html?partnerId=wittytv&configId=&programGuid=FD00000000153323&autoplay=true&purl=http://www.wittytv.it/amici/est-ce-que-tu-maimes-gabriele-5-dicembre-copia/',
+ 'only_matching': True,
+ }, {
'url': 'mediaset:FAFU000000665924',
'only_matching': True,
}, {