1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[ie/ApplePodcasts] Fix extractor (#10903)

Closes #10809
Authored by: coreywright
This commit is contained in:
Corey Wright
2024-09-29 16:03:39 -05:00
committed by GitHub
parent 5945fc1945
commit 6328e2e67a
2 changed files with 36 additions and 44 deletions

View File

@ -1710,7 +1710,7 @@ class InfoExtractor:
rating = traverse_obj(e, ('aggregateRating', 'ratingValue'), expected_type=float_or_none)
if rating is not None:
info['average_rating'] = rating
if is_type(e, 'TVEpisode', 'Episode'):
if is_type(e, 'TVEpisode', 'Episode', 'PodcastEpisode'):
episode_name = unescapeHTML(e.get('name'))
info.update({
'episode': episode_name,