feat: #670 get_podcast get_episode thumbnails
This commit is contained in:
parent
b86654fbaf
commit
df1c3bdd5b
2 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ class TestPodcasts:
|
|||
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
|
||||
|
|
@ -34,6 +35,7 @@ class TestPodcasts:
|
|||
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"]
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue