diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-03 01:58:04 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-03 01:58:04 -0500 |
| commit | ac3a94f5a1dbb94b374e0160c344fcf99af9b696 (patch) | |
| tree | f8b109c3bb5ebce964363e9df874bf3235259616 /MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs | |
| parent | 627b8370a89cbf9826898c2edfc46767dfb5272a (diff) | |
moved resolvers to implementations, trimmed nuget package a bit
Diffstat (limited to 'MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs b/MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs deleted file mode 100644 index 770b673a5..000000000 --- a/MediaBrowser.Controller/Resolvers/CoreResolutionIgnoreRule.cs +++ /dev/null @@ -1,55 +0,0 @@ -using MediaBrowser.Controller.Library; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace MediaBrowser.Controller.Resolvers -{ - /// <summary> - /// Provides the core resolver ignore rules - /// </summary> - public class CoreResolutionIgnoreRule : IResolutionIgnoreRule - { - /// <summary> - /// Any folder named in this list will be ignored - can be added to at runtime for extensibility - /// </summary> - private static readonly List<string> IgnoreFolders = new List<string> - { - "trailers", - "metadata", - "certificate", - "backup", - "ps3_update", - "ps3_vprm", - "adv_obj", - "extrafanart" - }; - - /// <summary> - /// Shoulds the ignore. - /// </summary> - /// <param name="args">The args.</param> - /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns> - public bool ShouldIgnore(ItemResolveArgs args) - { - // Ignore hidden files and folders - if (args.IsHidden) - { - return true; - } - - if (args.IsDirectory) - { - var filename = args.FileInfo.cFileName; - - // Ignore any folders in our list - if (IgnoreFolders.Contains(filename, StringComparer.OrdinalIgnoreCase)) - { - return true; - } - } - - return false; - } - } -} |
