Browsing albums in Iris doesn't work
Browsing to a funkwhale album in Iris displays a page like this:
Mopidy's documentation for library.browse
indicates that browsing should only return directory and/or track refs. I've confirmed that other extensions such as Mopidy-Local and Mopidy-Spotify do this. The current behaviour here is to return album refs when browsing albums, artist refs when browsing artists, etc. This appears to mostly work, but I've run into some flakiness when using Mopidy-Iris to browse my funkwhale library and albums won't display tracks properly unless I open them via search results. (NOTE: see below)
When I view funkwhale:directory:albums:by-name
, this happens
ERROR 2021-08-15 20:17:57,965 [45168:Core-7] mopidy.core.library FunkwhaleBackend backend returned bad data: Expected a list of Track, not [Ref(name='...', type='album', uri='funkwhale:directory:albums:by-name:5'), Ref(name='...', type='album', uri='funkwhale:directory:albums:by-name:6'), ...]
Also I hope I'm not causing too many notifications here. I haven't really contributed to any public projects before so I'm trying to keep things small. I've been slowly getting this extension to work better with Iris locally. I'd like to try to share my work as I get it cleaned up, but I'm just tackling problems as I find them so I'm not sure what the best way to keep everything organized is.