diff options
author | sepro <4618135+seproDev@users.noreply.github.com> | 2024-03-08 23:36:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 23:36:41 +0100 |
commit | f4f9f6d00edcac6d4eb2b3fb78bf81326235d492 (patch) | |
tree | 4808f816cfeec2a30a6072e99873f3601bef5060 /yt_dlp/extractor/megaphone.py | |
parent | dfd8c0b69683b1c11beea039a96dd2949026c1d7 (diff) |
[cleanup] Fix infodict returned fields (#8906)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/megaphone.py')
-rw-r--r-- | yt_dlp/extractor/megaphone.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/megaphone.py b/yt_dlp/extractor/megaphone.py index af80523e3..eb790e691 100644 --- a/yt_dlp/extractor/megaphone.py +++ b/yt_dlp/extractor/megaphone.py @@ -8,15 +8,15 @@ class MegaphoneIE(InfoExtractor): _VALID_URL = r'https://player\.megaphone\.fm/(?P<id>[A-Z0-9]+)' _EMBED_REGEX = [rf'<iframe[^>]*?\ssrc=["\'](?P<url>{_VALID_URL})'] _TEST = { - 'url': 'https://player.megaphone.fm/GLT9749789991?"', + 'url': 'https://player.megaphone.fm/GLT9749789991', 'md5': '4816a0de523eb3e972dc0dda2c191f96', 'info_dict': { 'id': 'GLT9749789991', 'ext': 'mp3', 'title': '#97 What Kind Of Idiot Gets Phished?', 'thumbnail': r're:^https://.*\.png.*$', - 'duration': 1776.26375, - 'author': 'Reply All', + 'duration': 1998.36, + 'creators': ['Reply All'], }, } @@ -40,7 +40,7 @@ class MegaphoneIE(InfoExtractor): 'id': video_id, 'thumbnail': thumbnail, 'title': title, - 'author': author, + 'creators': [author] if author else None, 'duration': episode_data['duration'], 'formats': formats, } |