mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 02:30:23 +01:00
change remote episode provider to xml reader
This commit is contained in:
@@ -121,9 +121,11 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
|
||||
{
|
||||
LazyInitializer.EnsureInitialized(ref _lastExecutionResult, ref _lastExecutionResultinitialized, ref _lastExecutionResultSyncLock, () =>
|
||||
{
|
||||
var path = GetHistoryFilePath(false);
|
||||
|
||||
try
|
||||
{
|
||||
return JsonSerializer.DeserializeFromFile<TaskResult>(GetHistoryFilePath(false));
|
||||
return JsonSerializer.DeserializeFromFile<TaskResult>(path);
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
{
|
||||
@@ -135,6 +137,11 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
|
||||
// File doesn't exist. No biggie
|
||||
return null;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.ErrorException("Error deserializing {0}", ex, path);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
return _lastExecutionResult;
|
||||
|
||||
Reference in New Issue
Block a user