Add Bandcamp/YouTube links on all recs, Fix My Playlist, configurable rec count

- Bandcamp: match artist+song, fall back to artist-only page
- YouTube fallback: if not on Bandcamp, link to YouTube music video search
- Fix My Playlist: AI analyzes playlist, finds outliers, suggests replacements
- User chooses recommendation count (5, 10, 15, 20)
This commit is contained in:
root
2026-03-31 08:45:02 -05:00
parent 47ab3dd847
commit 240032d972
8 changed files with 93 additions and 21 deletions

View File

@@ -10,6 +10,7 @@ class RecommendationRequest(BaseModel):
mode: str = "discover" # discover, sonic_twin, era_bridge, deep_cuts, rising
adventurousness: int = 3 # 1-5
exclude: str | None = None # comma-separated genres to exclude
count: int = 5 # Number of recommendations (5, 10, 15, 20)
class RecommendationItem(BaseModel):
@@ -21,6 +22,7 @@ class RecommendationItem(BaseModel):
preview_url: str | None = None
image_url: str | None = None
bandcamp_url: str | None = None
youtube_url: str | None = None
reason: str
score: float | None = None
saved: bool = False