Commit Graph

6 Commits

Author SHA1 Message Date
deluan 375dd85b15 refactor: update HTTP request handling to use host.HTTPSend for improved error management 2026-02-24 13:46:56 -05:00
deluan d10ee8588d fix: address code review issues for Spotify and Discord RPC
- Use MD5 hashing for image and Spotify cache keys instead of raw hex
  encoding (rpc.go) and SHA-256 (spotify.go)
- Validate Spotify track IDs with base-62 regex before using in URLs
- Fix buildSpotifySearchURL parameter order to match (artist, title) usage
- Tighten test mock matchers with shared helpers for cache keys and
  external-assets URLs, replacing broad mock.Anything usage
- Update test Spotify IDs to use valid base-62 identifiers
2026-02-23 22:28:13 -05:00
deluan 902239759a refactor: simplify processImage by removing recursion and add conditional SmallImage
Remove the recursive fallback pattern from processImage (5 duplicated
branches) and replace with a straight-line flow that returns errors to
the caller. Move fallback orchestration to sendActivity, which now
tries track artwork first, falls back to the Navidrome logo, and only
shows the SmallImage overlay when LargeImage is actual track art.
2026-02-23 21:35:40 -05:00
deluan 62df36b870 refactor: clean up integration test files and improve Spotify URL resolution logic 2026-02-23 20:41:35 -05:00
WoahAI 89c778d62f validated changes 2026-02-22 23:12:59 +00:00
deluan cdc693bd7f Initial commit, copy from examples folder 2026-02-02 18:44:59 -05:00