mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Fix manual mapping race condition and add log gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -88,6 +88,9 @@ apis/*.md
|
|||||||
apis/*.json
|
apis/*.json
|
||||||
!apis/jellyfin-openapi-stable.json
|
!apis/jellyfin-openapi-stable.json
|
||||||
|
|
||||||
|
# Log files for debugging
|
||||||
|
apis/*.log
|
||||||
|
|
||||||
# Endpoint usage tracking
|
# Endpoint usage tracking
|
||||||
apis/endpoint-usage.json
|
apis/endpoint-usage.json
|
||||||
/app/cache/endpoint-usage/
|
/app/cache/endpoint-usage/
|
||||||
|
|||||||
@@ -841,9 +841,7 @@ public class AdminController : ControllerBase
|
|||||||
{
|
{
|
||||||
_logger.LogInformation("Triggering immediate playlist rebuild for {Playlist} with new manual mapping", decodedName);
|
_logger.LogInformation("Triggering immediate playlist rebuild for {Playlist} with new manual mapping", decodedName);
|
||||||
|
|
||||||
// Run in background so we don't block the response
|
// Wait for the rebuild to complete before responding to ensure UI gets updated cache
|
||||||
_ = Task.Run(async () =>
|
|
||||||
{
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _matchingService.TriggerMatchingForPlaylistAsync(decodedName);
|
await _matchingService.TriggerMatchingForPlaylistAsync(decodedName);
|
||||||
@@ -853,7 +851,6 @@ public class AdminController : ControllerBase
|
|||||||
{
|
{
|
||||||
_logger.LogError(ex, "Failed to rebuild playlist {Playlist} after manual mapping", decodedName);
|
_logger.LogError(ex, "Failed to rebuild playlist {Playlist} after manual mapping", decodedName);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user