Similar tracks for own-app users via an external provider (Last.fm first)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with src/infra/network/recommend.rs and docs/ai-dj.md to understand the existing out-of-reach detection and external-provider pattern. The issue leaves key storage and whether the fallback replaces the existing action undecided, so confirm those choices before implementation. Done means a configured Last.fm fallback resolves similar tracks to Spotify results in the existing Recommendations screen, while missing keys or provider failures retain the current status message.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
With your own Spotify app (Development Mode), Spotify's /recommendations endpoint answers 403, so "play recommendations for a song" can't work (see #517 and #567, which cover the error handling). ncspot users who move to spotatui lose "songs similar to this one" for good, and Spotify has no replacement endpoint for these apps.
Describe the solution you'd like
Use an external service for the similar tracks and Spotify only as the catalogue and player, the same split the AI DJ already uses (docs/ai-dj.md).
Proposed first step, a Last.fm provider:
- The user sets a Last.fm API key in the config (the key is free). Nothing is shipped in the binary and nothing changes for users who don't set it.
- When the recommendations action is used and the Spotify endpoint is out of reach for the key (the case
endpoint_is_out_of_reachalready detects insrc/infra/network/recommend.rs), call Last.fmtrack.getSimilarwith the artist and title of the track. - Resolve each result to a Spotify track with
search(limited to 10 results in Development Mode), then show them in the existing Recommendations screen /RecommendedTrackstable context. - If no key is configured or Last.fm fails, keep today's "Recommendation: removed by Spotify..." status message.
Later, behind the same small provider interface, a ListenBrainz provider (no key needed; its similar-recordings dataset returns sensible results, but it needs a MusicBrainz id for the track, so it takes more steps to resolve).
Describe alternatives you've considered
- ListenBrainz first: no key, but mapping a Spotify track to a canonical MusicBrainz recording takes several calls and one of the lookup endpoints timed out in my tests.
- The AI DJ: works without Spotify's endpoint but needs an LLM setup, which is more than "songs like this".
Additional context
Questions before I start:
- Is a provider-based fallback welcome, or would you rather not depend on third-party services here?
- Where should the key live:
config.ymlunderbehavior, or an environment variable like the other sources? - Should the fallback replace the existing action (
ron a track) or be a separate one?
I'm happy to implement it and open a PR once you confirm the direction.
- Lingua principale
- Rust
- Stelle
- 1.4k
- Fork
- 238
- Merge medio
- 9h 21m
- PR unite (30g)
- 193
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LargeModGames/spotatui
-
enhancement good first issue javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
LargeModGames/spotatui#841 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
LargeModGames/spotatui#832 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LargeModGames/spotatui#829 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LargeModGames/spotatui#827 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LargeModGames/spotatui#825 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LargeModGames/spotatui
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
shep-pm/shep-kelpie#980 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend rt sev-3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
C-bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
[1.x Bug] run-operation --sql reports success but rolls back writes on transaction-capable adaptersApertatriage
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
dbt-labs/dbt#16784 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:cli bug good first issue priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
rtk-ai/rtk#4615 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno