Update mediaset.py
Mediaset underwent a name change. It used to be called mediasetplay but it's now called mediainfinity. Hence why downloads were failing. - Updated the regex to reflect the name change. - Changed the site URL of the first test to one that uses the new name change.
This commit is contained in:
parent
86e3cf5e58
commit
11d68ad77b
@ -21,7 +21,7 @@ class MediasetIE(ThePlatformBaseIE):
|
|||||||
(?:
|
(?:
|
||||||
mediaset:|
|
mediaset:|
|
||||||
https?://
|
https?://
|
||||||
(?:(?:www|static3)\.)?mediasetplay\.mediaset\.it/
|
(?:(?:www|static3)\.)?mediaset(?:play|infinity)\.mediaset\.it/
|
||||||
(?:
|
(?:
|
||||||
(?:video|on-demand|movie)/(?:[^/]+/)+[^/]+_|
|
(?:video|on-demand|movie)/(?:[^/]+/)+[^/]+_|
|
||||||
player(?:/v\d+)?/index\.html\?.*?\bprogramGuid=
|
player(?:/v\d+)?/index\.html\?.*?\bprogramGuid=
|
||||||
@ -30,20 +30,19 @@ class MediasetIE(ThePlatformBaseIE):
|
|||||||
'''
|
'''
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
# full episode
|
# full episode
|
||||||
'url': 'https://www.mediasetplay.mediaset.it/video/hellogoodbye/quarta-puntata_FAFU000000661824',
|
'url': 'https://mediasetinfinity.mediaset.it/video/matrix/saro-in-aula-voglio-guardarli-in-faccia_F308550501001C01',
|
||||||
'md5': '9b75534d42c44ecef7bf1ffeacb7f85d',
|
'md5': '160a6c662fb85d96bd67f8508cc17ae8',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'FAFU000000661824',
|
'id': 'F308550501001C01',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Quarta puntata',
|
'title': '"Sarò in aula. Voglio guardarli in faccia"',
|
||||||
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'duration': 217.019,
|
||||||
'duration': 1414.26,
|
'upload_date': '20200905',
|
||||||
'upload_date': '20161107',
|
'series': 'Matrix',
|
||||||
'series': 'Hello Goodbye',
|
'timestamp': 1599304297,
|
||||||
'timestamp': 1478532900,
|
'uploader': 'Canale 5',
|
||||||
'uploader': 'Rete 4',
|
'uploader_id': 'C5',
|
||||||
'uploader_id': 'R4',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.mediasetplay.mediaset.it/video/matrix/puntata-del-25-maggio_F309013801000501',
|
'url': 'https://www.mediasetplay.mediaset.it/video/matrix/puntata-del-25-maggio_F309013801000501',
|
||||||
@ -53,11 +52,10 @@ class MediasetIE(ThePlatformBaseIE):
|
|||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Puntata del 25 maggio',
|
'title': 'Puntata del 25 maggio',
|
||||||
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'duration': 6565.008,
|
||||||
'duration': 6565.007,
|
'upload_date': '20200903',
|
||||||
'upload_date': '20180526',
|
|
||||||
'series': 'Matrix',
|
'series': 'Matrix',
|
||||||
'timestamp': 1527326245,
|
'timestamp': 1599172492,
|
||||||
'uploader': 'Canale 5',
|
'uploader': 'Canale 5',
|
||||||
'uploader_id': 'C5',
|
'uploader_id': 'C5',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user