Merge reading from file and parsing

This commit is contained in:
Stepan Goremykin 2023-10-12 21:28:04 +02:00
parent 8d7e4229ca
commit a773b43a81

View File

@ -115,8 +115,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
{ {
try try
{ {
var failHistoryText = await File.ReadAllTextAsync(failHistoryPath, cancellationToken).ConfigureAwait(false); previouslyFailedImages = (await File.ReadAllTextAsync(failHistoryPath, cancellationToken).ConfigureAwait(false))
previouslyFailedImages = failHistoryText
.Split('|', StringSplitOptions.RemoveEmptyEntries) .Split('|', StringSplitOptions.RemoveEmptyEntries)
.ToList(); .ToList();
} }