diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-15 11:36:09 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-15 11:36:09 -0500 |
| commit | 8b71ab2e7d81f315f729aaee5eb976d181b8909b (patch) | |
| tree | dd21a96c08d1f9353ce61e0e77d34b8070c97a07 /MediaBrowser.Controller/Providers | |
| parent | 4e414ebc919df021bfe339a98a5385a0e618c391 (diff) | |
expose omdb to metadata config
Diffstat (limited to 'MediaBrowser.Controller/Providers')
| -rw-r--r-- | MediaBrowser.Controller/Providers/DirectoryService.cs | 7 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Providers/ItemLookupInfo.cs | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs index e17ae76ffd..751de9fb4f 100644 --- a/MediaBrowser.Controller/Providers/DirectoryService.cs +++ b/MediaBrowser.Controller/Providers/DirectoryService.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Model.Logging; +using System.Collections.Concurrent; +using MediaBrowser.Model.Logging; using System; using System.Collections.Generic; using System.IO; @@ -19,7 +20,7 @@ namespace MediaBrowser.Controller.Providers { private readonly ILogger _logger; - private readonly Dictionary<string, List<FileSystemInfo>> _cache = new Dictionary<string, List<FileSystemInfo>>(StringComparer.OrdinalIgnoreCase); + private readonly ConcurrentDictionary<string, List<FileSystemInfo>> _cache = new ConcurrentDictionary<string, List<FileSystemInfo>>(StringComparer.OrdinalIgnoreCase); public DirectoryService(ILogger logger) { @@ -43,7 +44,7 @@ namespace MediaBrowser.Controller.Providers entries = new List<FileSystemInfo>(); } - _cache.Add(path, entries); + _cache.TryAdd(path, entries); } return entries; diff --git a/MediaBrowser.Controller/Providers/ItemLookupInfo.cs b/MediaBrowser.Controller/Providers/ItemLookupInfo.cs index b43654005a..665da28f48 100644 --- a/MediaBrowser.Controller/Providers/ItemLookupInfo.cs +++ b/MediaBrowser.Controller/Providers/ItemLookupInfo.cs @@ -142,7 +142,7 @@ namespace MediaBrowser.Controller.Providers public class TrailerInfo : ItemLookupInfo { - + public bool IsLocalTrailer { get; set; } } public class BookInfo : ItemLookupInfo |
