[extractor/mediaset] Improve `_VALID_URL`

Fixes https://github.com/yt-dlp/yt-dlp/issues/4141#issuecomment-1166521057
This commit is contained in:
pukkandan 2022-06-26 18:49:34 +05:30
parent 1685d46007
commit e08f72e675
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 4 additions and 1 deletions

View 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