A feature-rich command-line audio/video downloader
[megatvcom] Add embed test (#2362)
Zenon Mousmoulasb143e83ec9ea
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.pyindex 8649779947..101258d743 100644--- a/yt_dlp/extractor/generic.py+++ b/yt_dlp/extractor/generic.py@@ -1885,8 +1885,42 @@ class GenericIE(InfoExtractor):'timestamp': 1641885019,'upload_date': '20220111','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'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm',