mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 07:58:39 -05:00
fix: manual mapping UI and [S] tag consistency
- Fix manual mapping track selection visual feedback (use accent color + background) - Clear all playlist caches after manual mapping (matched, ordered, items) - Strip [S] suffix from titles/artists/albums when searching for lyrics - Add [S] suffix to artist and album names when song has [S] for consistency - Ensures external tracks are clearly marked across all metadata fields All 225 tests pass.
This commit is contained in:
@@ -645,9 +645,16 @@ public class AdminController : ControllerBase
|
||||
_logger.LogInformation("Manual mapping saved: {Playlist} - Spotify {SpotifyId} → Jellyfin {JellyfinId}",
|
||||
decodedName, request.SpotifyId, request.JellyfinId);
|
||||
|
||||
// Clear the matched tracks cache to force re-matching
|
||||
var cacheKey = $"spotify:matched:{decodedName}";
|
||||
await _cache.DeleteAsync(cacheKey);
|
||||
// Clear all related caches to force rebuild
|
||||
var matchedCacheKey = $"spotify:matched:{decodedName}";
|
||||
var orderedCacheKey = $"spotify:matched:ordered:{decodedName}";
|
||||
var playlistItemsKey = $"spotify:playlist:items:{decodedName}";
|
||||
|
||||
await _cache.DeleteAsync(matchedCacheKey);
|
||||
await _cache.DeleteAsync(orderedCacheKey);
|
||||
await _cache.DeleteAsync(playlistItemsKey);
|
||||
|
||||
_logger.LogInformation("Cleared playlist caches for {Playlist} to force rebuild", decodedName);
|
||||
|
||||
return Ok(new { message = "Mapping saved successfully" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user