[megatvcom] Add embed test (#2362)

Authored by: zmousm
This commit is contained in:
Zenon Mousmoulas 2022-01-19 15:43:51 +02:00 committed by GitHub
parent 4a77fb1d6b
commit b143e83ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -1885,8 +1885,42 @@ class GenericIE(InfoExtractor):
'timestamp': 1641885019, 'timestamp': 1641885019,
'upload_date': '20220111', 'upload_date': '20220111',
'duration': 460000, 'duration': 460000,
'thumbnail': 'https://i3thumbs.glomex.com/dC1idjJwdndiMjRzeGwvMjAyMi8wMS8xMS8wNy8xMF8zNV82MWRkMmQ2YmU5ZTgyLmpwZw==/profile:player-960x540',
}, },
}, },
{
# megatvcom:embed
'url': 'https://www.in.gr/2021/12/18/greece/apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize/',
'info_dict': {
'id': 'apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize',
'title': 'md5:5e569cf996ec111057c2764ec272848f',
},
'playlist': [{
'md5': '1afa26064ff00ccb91617957dbc73dc1',
'info_dict': {
'ext': 'mp4',
'id': '564916',
'display_id': 'md5:6cdf22d3a2e7bacb274b7295089a1770',
'title': 'md5:33b9dd39584685b62873043670eb52a6',
'description': 'md5:c1db7310f390518ac36dd69d947ef1a1',
'timestamp': 1639753145,
'upload_date': '20211217',
'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/prezerakos-1024x597.jpg',
},
}, {
'md5': '4a1c220695f1ef865a8b7966a53e2474',
'info_dict': {
'ext': 'mp4',
'id': '564905',
'display_id': 'md5:ead15695e485e649aed2b81ebd699b88',
'title': 'md5:2b71fd54249a3ca34609fe39ae31c47b',
'description': 'md5:c42e12f638d0a97d6de4508e2c4df982',
'timestamp': 1639753047,
'upload_date': '20211217',
'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/tsiodras-mitsotakis-1024x545.jpg',
},
}]
},
{ {
# ThePlatform embedded with whitespaces in URLs # ThePlatform embedded with whitespaces in URLs
'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm', 'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm',