navidrome/core/playlists
Deluan 73203eeef0 refactor: simplify and improve playlist provider and matcher code
Eliminate redundant work and minor issues found during code review:
- Replace manual PlaylistTrack construction in syncPlaylist with the
  existing Playlist.AddMediaFiles helper, removing duplicated logic
- Pre-sanitize track fields once per artist batch in the matcher's
  fuzzy matching loop, avoiding redundant sanitization in both
  findBestMatch and computeSpecificityLevel on every iteration
- Cache resolved usernames in discoverAndSync to avoid N+1 DB lookups
  when multiple playlists share the same owner
- Use the local loadedPlugin variable instead of reading m.plugins[p.ID]
  after releasing the lock in loadPluginWithConfig
- Fix misleading uint32 comparison (<=0 to ==0) in durationProximity
- Update stale comment on checkTracksEditable to mention plugin playlists
2026-04-12 17:38:21 -04:00
..
import.go feat(playlist): support #EXTALBUMARTURL directive and sidecar images (#5131) 2026-03-02 11:39:59 -05:00
import_test.go feat: add artist image uploads and image-folder artwork source (#5198) 2026-03-15 22:19:55 -04:00
parse_m3u.go refactor: simplify playlist name extraction using strings.CutPrefix 2026-03-23 11:40:16 -04:00
parse_m3u_test.go refactor: move playlist business logic from repositories to service layer (#5027) 2026-02-21 19:57:13 -05:00
parse_nsp.go refactor(jsoncommentstrip): replace go-jsoncommentstrip with custom JSON comment stripping 2026-03-14 10:18:56 -04:00
parse_nsp_test.go feat(server): add percentage-based limits to smart playlists (#5144) 2026-03-04 22:42:49 -05:00
playlists.go refactor: simplify and improve playlist provider and matcher code 2026-04-12 17:38:21 -04:00
playlists_suite_test.go refactor: move playlist business logic from repositories to service layer (#5027) 2026-02-21 19:57:13 -05:00
playlists_test.go feat: add read-only guards for plugin-managed playlists 2026-04-12 17:32:18 -04:00
rest_adapter.go fix(playlist): update smart playlist rules during metadata update 2026-03-13 19:20:07 -04:00
rest_adapter_test.go feat: add artist image uploads and image-folder artwork source (#5198) 2026-03-15 22:19:55 -04:00