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

Get top and similar tracks #219

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Get top and similar tracks #219

wants to merge 6 commits into from

Conversation

NattyNarwhal
Copy link
Member

This does some refactoring to the search controller and results class to handle the concept of not just searches, but other lists of tracks returned by the server. It's a little gross at times because it has to interface Swift's enums with the Objective-C side. I'm not sure if this is the best strategy, but it does seem to work for now; we can split out the new stuff into a separate controller if needed..

Note that the "quality" of the returned tracks is highly dependent on server configuration; Subsonic and Navidrome at least rely on last.fm for anything more intelligent than returning starred tracks.

Fixes GH-108 and GH-109.

This turns the search results controller into a generic "we have a list of
tracks" controller. It should probably be renamed, along with the class
and enum that holds the tracks to begin with.

There's some hacks to make this work with an ObjC frontend. Once we
convert it to Swift, we can just expose the enum directly.

UI is not wired up yet.
There's an issue with titles that kind of sucks. Will have to fix.

Fixes GH-109
Could have used bindings instead, don't feel too strongly either way
@NattyNarwhal NattyNarwhal added the enhancement New feature or request label Nov 13, 2024
@NattyNarwhal
Copy link
Member Author

@SevereOverfl0w Sorry your feature requests came late. If you (want to) try this, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for "radio"
1 participant