Commit graph ytmusicapi/tests/mixins/test_playlists.py
Author SHA1 Message Date
fischcode
d143480ae4
Fix parsing of album and views in parse_playlist_items (#552)
* Fix parsing of album and views in parse_playlist_items

Parse album and views columns as a function of flex column count and is_album property to cater for varying layouts with three and four flex columns

* Add "own_playlist" attribute to playlists

To allow for an easy distinction between owned / editable and community / non-editable playlists,in applications incorporating ytmusicapi, a boolean "own_playlist" dictionary entry is added to playlists based on existing code already identifying this property.

* Add thumbnails to episodes

Add thumbnails to episodes for visual rendering in Kodi etc.

* Add unit test for playlist "own_playlist" attribut

Add unit test for playlist "own_playlist" attribut

* Improvements as requested

- rename attribute for own playlists to playlist("owned")
- filter out episode thumbnails with an non-functional URL

* Fix linter in test_playlists.py

Fix test for playlist["owned"]

* Auto-Formatting on playlists.py

* format parsers/podcasts.py

* Remove filtering of podcast thumbnails

No idea why I had seen useless images for those thumbnails before - maybe Google fixed something to make them work?
2024-02-27 09:23:09 +01:00
sigma67
e1bcb88c92 Revert "get_charts: removed trending category (no longer available on YTM)"
This reverts commit da492e49f6.
2024-02-22 20:47:15 +01:00
sigma67
da492e49f6 get_charts: removed trending category (no longer available on YTM) 2024-02-04 17:03:59 +01:00
sigma67
69dd4a9f2f test restructuring via pytest 2024-01-02 22:09:22 +01:00