|
|
|
@ -1338,7 +1338,14 @@ public class LocalMetadataProvider : ILocalMetadataProvider |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
_logger.LogDebug("Reading artist metadata from {NfoFileName}", nfoFileName); |
|
|
|
|
|
|
|
_logger.LogDebug("Total memory: {TotalMemory}", GC.GetTotalMemory(false)); |
|
|
|
|
|
|
|
|
|
|
|
Either<BaseError, ArtistNfo> maybeNfo = await _artistNfoReader.ReadFromFile(nfoFileName); |
|
|
|
Either<BaseError, ArtistNfo> maybeNfo = await _artistNfoReader.ReadFromFile(nfoFileName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogDebug("Finished reading artist metadata from {NfoFileName}", nfoFileName); |
|
|
|
|
|
|
|
_logger.LogDebug("Total memory: {TotalMemory}", GC.GetTotalMemory(false)); |
|
|
|
|
|
|
|
|
|
|
|
foreach (BaseError error in maybeNfo.LeftToSeq()) |
|
|
|
foreach (BaseError error in maybeNfo.LeftToSeq()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_logger.LogInformation( |
|
|
|
_logger.LogInformation( |
|
|
|
@ -1368,6 +1375,7 @@ public class LocalMetadataProvider : ILocalMetadataProvider |
|
|
|
catch (Exception ex) |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_logger.LogInformation(ex, "Failed to read artist nfo metadata from {Path}", nfoFileName); |
|
|
|
_logger.LogInformation(ex, "Failed to read artist nfo metadata from {Path}", nfoFileName); |
|
|
|
|
|
|
|
_logger.LogDebug("Total memory on failure: {TotalMemory}", GC.GetTotalMemory(false)); |
|
|
|
_client.Notify(ex); |
|
|
|
_client.Notify(ex); |
|
|
|
return None; |
|
|
|
return None; |
|
|
|
} |
|
|
|
} |
|
|
|
|