get_playlist/get_episodes_playlist: fix metadata (#809)

- `get_playlist` (non-audio) returns `author`

- `get_episodes_playlist` parses `description` and no longer returns
`year` as the author name:

```diff
- "description": null,
- "author": {
-   "name": "2025",
-   "id": null
- },
+ "author": {
+   "name": "Authed User",
+   "id": "..."
+ },
+ "description": "The newest episodes from all your saved podcasts",
+ "year": "2025",
```

- `get_artist_albums` and `get_playlist` (non-audio) no longer return
`"artists": []`
This commit is contained in:
Solomon 2025-08-30 13:30:28 -06:00 • committed by GitHub
commit e9096bf339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 37 additions and 11 deletions

View file

@ -49,3 +49,6 @@ class TestPodcasts:
def test_get_episodes_playlist(self, yt_brand):
playlist = yt_brand.get_episodes_playlist()
assert len(playlist["episodes"]) > 90
assert playlist["description"]
assert playlist["year"]
assert playlist["author"]["id"] and playlist["author"]["name"]