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 Page Recursion into Categories #236

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

quodrum-glas
Copy link
Contributor

Page iteration for child items expects PageCategory to have items but ALBUM_HEADER and ARTIST_HEADER is itself an item not an Object with items.
Wrapping those items in a pretend PageCategory so iteration will not throw an error.
Album has items itself but is a method and the error is even more confusing saying that items function can not be iterated.

Tests: local server test

@tehkillerbee
Copy link
Collaborator

@quodrum-glas Thanks for this PR. I did test it with my mopidy-tidal plugin and did not notice any (breaking) changes. But I do believe I added some workarounds a while back to fix a similar issue so perhaps that is why?

Have you got any example pages where this issue occurs?

@tehkillerbee tehkillerbee merged commit 56e7358 into tamland:master Feb 28, 2024
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