diff --git a/docs/design/mood-first.md b/docs/design/mood-first.md index 44bd117..11c783b 100644 --- a/docs/design/mood-first.md +++ b/docs/design/mood-first.md @@ -333,14 +333,15 @@ directory and the cover. Run GC: ### 4.7 Search and URL adds -- `GET /api/v1/search?q=...&limit=...` -> YT results with `videoId,title, - artist,album,duration,thumbnail,songId?,downloaded`. +- `GET /api/v1/search?q=...&limit=...` -> YouTube Music song results with + `videoId,title,artist,album,duration,thumbnail,songId?,downloaded,inMood`. - Hide results with `duration > 600` seconds (and probably `< 30`). - `POST /api/v1/moods/{id}/songs` accepts either `songId` (existing download) or download metadata, or `url`. A URL is resolved with yt-dlp (`--dump-single-json --no-playlist`) before enqueueing. -- Search requires auth; it is a server-side yt-dlp call, so use a 120s client - timeout and return 502 with the yt-dlp error on failure. +- Search requires auth; it is a server-side yt-dlp call that resolves every + Music result, so use a 60s client timeout and return 502 with the yt-dlp + error on failure. ### 4.8 API surface