update recording deletion process

This commit is contained in:
Luke Pulverenti
2016-02-11 23:54:00 -05:00
parent e04582c9d2
commit b30bd9a1df
10 changed files with 57 additions and 22 deletions

View File

@@ -1673,6 +1673,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
throw new ResourceNotFoundException(string.Format("Recording with Id {0} not found", recordingId));
}
await DeleteRecording(recording).ConfigureAwait(false);
}
public async Task DeleteRecording(ILiveTvRecording recording)
{
var service = GetService(recording.ServiceName);
try
@@ -1685,7 +1690,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
}
_lastRecordingRefreshTime = DateTime.MinValue;
// This is the responsibility of the live tv service
await _libraryManager.DeleteItem((BaseItem)recording, new DeleteOptions
{