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

[Feature request] View and play similar songs #565

Open
Explosion-Scratch opened this issue Mar 30, 2024 · 3 comments
Open

[Feature request] View and play similar songs #565

Explosion-Scratch opened this issue Mar 30, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Explosion-Scratch
Copy link

I know you can do this in full screen but there should be a context menu item for it and a route to a song's "radio".

I hate feature requesting without contributing to a project so I'm trying to implement this myself but I can't figure out how to navigate to a page from context-menu-provider.tsx or where to put the new route (app-router.tsx? - How do I pass data to routes, like song ID?)

I'll figure it out if I get some time

@Explosion-Scratch Explosion-Scratch added the enhancement New feature or request label Mar 30, 2024
@kgarner7
Copy link
Collaborator

kgarner7 commented Apr 6, 2024

If you actually want to take a look at this (would be great!), you could look at the following sections:

  1. Add a new event for ContextMenuItemType in events.ts
  2. Add that event where appropriate in context-menu-items.tsx (probably just queue/song/playlist)
  3. Implement that feature in context-menu-provider.tsx. There is already a controller for this, so you could call that. Of note, while Jellyfin instant mix should always work, Navidrome (really, Subsonic) similar tracks may not work always

@Explosion-Scratch
Copy link
Author

@kgarner7 I would love to! Thanks for your advice on which sections, I'm very new to react 😅 (more of a Svelte/Vue guy). I have a busy week this week and next due to some travel but likely after that things will settle down.

Navidrome/subsonic similar songs seem to fail for me so I'll need to read some docs first. My ultimate goal would be something like spotify's song radios, so:
Corner click -> List of similar songs is displayed (like an album layout) -> Play from there

@kgarner7
Copy link
Collaborator

kgarner7 commented Apr 8, 2024

Yeah, gettSimilarSongs relies on last.fm so it isn't as reliable. I've added fallbacks to both Navidrome (just get random songs from the artist) and Jellyfin (InstantMix; not as good, but at least you'll get a playlist). There are still cases where there will be no tracks at all (e.g. album artist with only one track, no similar), but I think that's about as good as it'll get.

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

No branches or pull requests

2 participants