Repository: yt-dlp/yt-dlp
File: yt_dlp/extractor/anchorfm.py (Python)

Code before:
            'release_timestamp': 1671595916,
            'episode_id': 'e1shjqd',
            'thumbnail': 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_episode400/2627805/2627805-1671590688729-4db3882ac9e4b.jpg',
            'uploader': 'Podcast Tempo',
            'channel': 'apakatatempo',
        }
    }]

    def _real_extract(self, url):
        channel_name, episode_id = self._match_valid_url(url).group('channel_name', 'episode_id')
        api_data = self._download_json(f'https://anchor.fm/api/v3/episodes/{episode_id}', episode_id)

        return {
            'id': episode_id,
            'title': traverse_obj(api_data, ('episode', 'title')),
            'url': traverse_obj(api_data, ('episode', 'episodeEnclosureUrl')) or api_data['episodeAudios'][0]['url'],
            'ext': 'mp3',
            'thumbnail': traverse_obj(api_data, ('episode', 'episodeImage')),
            'description': clean_html(traverse_obj(api_data, ('episode', ('description', 'descriptionPreview')), get_all=False)),
            'duration': float_or_none(traverse_obj(api_data, ('episode', 'duration')), 1000),
            'modified_timestamp': unified_timestamp(traverse_obj(api_data, ('episode', 'modified'))),
            'release_timestamp': int_or_none(traverse_obj(api_data, ('episode', 'publishOnUnixTimestamp'))),
            'episode_id': episode_id or traverse_obj(api_data, ('episode', 'episodeId')),
            'uploader': traverse_obj(api_data, ('creator', 'name')),
            'uploader_id': str_or_none(traverse_obj(api_data, ('creator', 'userId'))),
            'season_number': int_or_none(traverse_obj(api_data, ('episode', 'podcastSeasonNumber'))),
            'channel': channel_name or traverse_obj(api_data, ('creator', 'vanitySlug')),
        }


Review comment (suggestion):
same for `channel_name`
```suggestion
            'channel': channel_name,
```

Code after:
            'thumbnail': 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_episode400/2627805/2627805-1671590688729-4db3882ac9e4b.jpg',
            'uploader': 'Podcast Tempo',
            'channel': 'apakatatempo',
        }
    }]

    def _real_extract(self, url):
        channel_name, episode_id = self._match_valid_url(url).group('channel_name', 'episode_id')
        api_data = self._download_json(f'https://anchor.fm/api/v3/episodes/{episode_id}', episode_id)

        return {
            'id': episode_id,
            'title': traverse_obj(api_data, ('episode', 'title')),
            'url': traverse_obj(api_data, ('episode', 'episodeEnclosureUrl'), ('episodeAudios', 0, 'url')),
            'ext': 'mp3',
            'vcodec': 'none',
            'thumbnail': traverse_obj(api_data, ('episode', 'episodeImage')),
            'description': clean_html(traverse_obj(api_data, ('episode', ('description', 'descriptionPreview')), get_all=False)),
            'duration': float_or_none(traverse_obj(api_data, ('episode', 'duration')), 1000),
            'modified_timestamp': unified_timestamp(traverse_obj(api_data, ('episode', 'modified'))),
            'release_timestamp': int_or_none(traverse_obj(api_data, ('episode', 'publishOnUnixTimestamp'))),
            'episode_id': episode_id,
            'uploader': traverse_obj(api_data, ('creator', 'name')),
            'uploader_id': str_or_none(traverse_obj(api_data, ('creator', 'userId'))),
            'season_number': int_or_none(traverse_obj(api_data, ('episode', 'podcastSeasonNumber'))),
            'channel': channel_name or traverse_obj(api_data, ('creator', 'vanitySlug')),
        }