Resources
Blog Docs Source Status
Social
Discord IRC Bluesky X/Twitter
Contact
team@tangled.org security@tangled.org
Legal
Terms of Service Privacy Policy

Sign in Join now
hackermusic 2000.nyc /
Star Starred Star 0
Something went wrong. Try again.
Fork 0
Eye filled Watch Watching Watch
Star Starred Star 0
Something went wrong. Try again.
Fork 0
Eye filled Watch Watching Watch
Overview Overview Issues Issues Pulls Pulls Pipelines Pipelines
hackermusic /src /lib /cli /store.test.ts
3.3 kB · 94 lines
TypeScript
at main

Download Open raw file
2000.nyc
· :scan asks the server for a fast rescan now, and harvests the rows it earns: until then the minute-long poll was the only way new files reached the library, and a timer nobody can press is a strange kind of patience. startScan is Navidrome's own Subsonic extension (server/subsonic/library_scanning.go) — fullScan=false is the cheap pass over changed files, and the endpoint answers with its own fresh getScanStatus, which the fake server now does too, mutably: a requested scan has to move lastScan for the re-harvest's key comparison to have anything to notice. The harvest lands eight seconds after the ask, then waits (2s polls, one-minute cap) for the scan to settle before crawling — refresh refuses to index a running scan whose count is a moving target, and crawling into one would stamp a half-scanned library as current. It is the store's first asynchronous command-line verb, so Command.run may now return a promise of its line: the press leaves the verb and an ellipsis on the readout, and the verdict replaces exactly that placeholder — a key typed in between took the press's feedback away, and a late line after that is furniture, not feedback. The refusal matters as much as the success: startScan sits behind Navidrome's adminOnly middleware, and a non-admin gets the server's own words on the line rather than a silent success. · 2mo ago
2e6b4699