Skip to content

Commit

Permalink
get_playlist: fix title for podcast episodes (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
czifumasa committed Jul 14, 2024
1 parent 12cc15e commit b15087d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ytmusicapi/parsers/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def parse_playlist_item(
album_index = index
elif page_type == "MUSIC_PAGE_TYPE_USER_CHANNEL":
user_channel_indexes.append(index)
# Non music videos, for example: podcast episodes
elif page_type == "MUSIC_PAGE_TYPE_NON_MUSIC_AUDIO_TRACK_PAGE":
title_index = index

# Extra check for rare songs, where artist is non-clickable and does not have navigationEndpoint
if artist_index is None and unrecognized_index is not None:
Expand Down

0 comments on commit b15087d

Please sign in to comment.