Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of album and views in parse_playlist_items #552

Merged
merged 9 commits into from
Feb 27, 2024
Merged

Fix parsing of album and views in parse_playlist_items #552

merged 9 commits into from
Feb 27, 2024

Conversation

fischcode
Copy link
Contributor

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

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
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 for visual rendering in Kodi etc.
@fischcode
Copy link
Contributor Author

@sigma67 Please note that the three commits are independent contributions an that there are no dependencies between them whatsoever

Add unit test for playlist "own_playlist" attribut
Copy link
Owner

@sigma67 sigma67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, looks good mostly. Some minor comments & please fix linter issues :)

ytmusicapi/mixins/playlists.py Outdated Show resolved Hide resolved
ytmusicapi/parsers/playlists.py Show resolved Hide resolved
ytmusicapi/parsers/podcasts.py Outdated Show resolved Hide resolved
- rename attribute for own playlists to playlist("owned")
- filter out episode thumbnails with an non-functional URL
@sigma67
Copy link
Owner

sigma67 commented Feb 26, 2024

@fischcode linter is still failing

Fix test for playlist["owned"]
@fischcode
Copy link
Contributor Author

Added a commit to fischcode/ytmusicapi but it fails to show up here ...

No idea why I had seen useless images for those thumbnails before - maybe Google fixed something to make them work?
@sigma67 sigma67 merged commit d143480 into sigma67:main Feb 27, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants