mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-27 12:34:56 +01:00
added recording logging
This commit is contained in:
@@ -1217,7 +1217,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
{
|
||||
var result = ItemRepository.GetItemIdsList(query);
|
||||
|
||||
var items = result.Select(GetItemById).ToArray();
|
||||
var items = result.Select(GetItemById).Where(i => i != null).ToArray();
|
||||
|
||||
return new QueryResult<BaseItem>
|
||||
{
|
||||
|
||||
@@ -541,13 +541,16 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
}
|
||||
|
||||
recording.Status = RecordingStatus.Completed;
|
||||
_logger.Info("Recording completed");
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
_logger.Info("Recording cancelled");
|
||||
recording.Status = RecordingStatus.Completed;
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error recording", ex);
|
||||
recording.Status = RecordingStatus.Error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user