diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-17 16:35:08 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-17 16:35:08 -0500 |
| commit | 1a9e2dfd83dbab2e9a5f277229c5994253fd8a9a (patch) | |
| tree | 157ac5c2ee2e226560d04d61fef79445b23c231d /MediaBrowser.Controller/Entities | |
| parent | 4ebba2b2e87e33f083c095957a2294b6f8ae3828 (diff) | |
fixed themoviedb search returning no results
Diffstat (limited to 'MediaBrowser.Controller/Entities')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Entities/TV/Series.cs | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 41c4f0bae..62ea0cf5d 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -163,7 +163,7 @@ namespace MediaBrowser.Controller.Entities { var locationType = LocationType; - return locationType == LocationType.FileSystem || locationType == LocationType.Offline; + return locationType != LocationType.Remote && locationType != LocationType.Virtual; } } @@ -581,7 +581,7 @@ namespace MediaBrowser.Controller.Entities try { - var files = locationType == LocationType.FileSystem || locationType == LocationType.Offline ? + var files = locationType != LocationType.Remote && locationType != LocationType.Virtual ? GetFileSystemChildren(options.DirectoryService).ToList() : new List<FileSystemInfo>(); diff --git a/MediaBrowser.Controller/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.cs index 4696c8a0f..d1d393e3e 100644 --- a/MediaBrowser.Controller/Entities/TV/Series.cs +++ b/MediaBrowser.Controller/Entities/TV/Series.cs @@ -1,12 +1,10 @@ -using MediaBrowser.Controller.Library; -using MediaBrowser.Controller.Localization; +using MediaBrowser.Controller.Localization; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Querying; using System; using System.Collections.Generic; -using System.IO; using System.Linq; using System.Runtime.Serialization; |
