diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-02-11 23:59:22 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-02-11 23:59:22 -0500 |
| commit | 6f2d87a0f98704f63f8d37229017cdb8fae1acf1 (patch) | |
| tree | b2b78015920018c0d701c94fdcd8510d9239bc0a /MediaBrowser.Api/Library/LibraryService.cs | |
| parent | cec3d7e6b4cb2805e9fa0b1028d0dbb8eb3d95fb (diff) | |
| parent | b30bd9a1dfc52ff4581183acf5ddb214efc518da (diff) | |
Merge pull request #1444 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryService.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index 0563727d9..896f8c990 100644 --- a/MediaBrowser.Api/Library/LibraryService.cs +++ b/MediaBrowser.Api/Library/LibraryService.cs @@ -569,7 +569,7 @@ namespace MediaBrowser.Api.Library { throw new ArgumentException("This command cannot be used for remote or virtual items."); } - if (_fileSystem.DirectoryExists(item.Path)) + if (_fileSystem.DirectoryExists(item.Path)) { throw new ArgumentException("This command cannot be used for directories."); } @@ -789,12 +789,10 @@ namespace MediaBrowser.Api.Library return Task.FromResult(true); } - if (item is ILiveTvRecording) + return item.Delete(new DeleteOptions { - return _liveTv.DeleteRecording(i); - } - - return _libraryManager.DeleteItem(item); + DeleteFileLocation = true + }); }).ToArray(); Task.WaitAll(tasks); |
