Skip to content

Commit

Permalink
feat: #670 get_podcast get_episode thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Dec 17, 2024
1 parent b86654f commit df1c3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/mixins/test_podcasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_get_podcast(self, config, yt, yt_brand):
podcast = yt.get_podcast(podcast_id)
assert len(podcast["episodes"]) == 100
assert not podcast["saved"]
assert podcast["thumbnails"]

podcast = yt_brand.get_podcast(podcast_id, limit=None)
assert len(podcast["episodes"]) > 100
Expand All @@ -34,6 +35,7 @@ def test_get_episode(self, config, yt, yt_brand):
assert len(episode["description"]) >= 20
assert not episode["saved"]
assert episode["playlistId"] is not None
assert episode["thumbnails"]

episode = yt_brand.get_episode(episode_id)
assert episode["saved"]
Expand Down
1 change: 1 addition & 0 deletions ytmusicapi/parsers/podcasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def parse_base_header(header: dict) -> dict:
"id": nav(strapline, ["runs", 0, *NAVIGATION_BROWSE_ID], True),
},
"title": nav(header, TITLE_TEXT),
"thumbnails": nav(header, THUMBNAILS),
}


Expand Down

0 comments on commit df1c3bd

Please sign in to comment.