diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-25 14:32:58 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-25 14:32:58 -0400 |
| commit | d74e3b2dea894a7cdc3defac418069081dd2ae22 (patch) | |
| tree | 9618eea91bf12790b51eeb0138a01f1641968043 /MediaBrowser.Controller/Library | |
| parent | c8a735bcb1ba71e9501d18b3044aa30793ff97ee (diff) | |
connect updates
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/TVUtils.cs | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/MediaBrowser.Controller/Library/TVUtils.cs b/MediaBrowser.Controller/Library/TVUtils.cs index c85a8f335..314efcce5 100644 --- a/MediaBrowser.Controller/Library/TVUtils.cs +++ b/MediaBrowser.Controller/Library/TVUtils.cs @@ -213,38 +213,38 @@ namespace MediaBrowser.Controller.Library return false; } - // It's a season folder if it's named as such and does not contain any audio files, apart from theme.mp3 - foreach (var fileSystemInfo in directoryService.GetFileSystemEntries(path)) - { - var attributes = fileSystemInfo.Attributes; - - if ((attributes & FileAttributes.Hidden) == FileAttributes.Hidden) - { - continue; - } - - // Can't enforce this because files saved by Bitcasa are always marked System - //if ((attributes & FileAttributes.System) == FileAttributes.System) - //{ - // continue; - //} - - if ((attributes & FileAttributes.Directory) == FileAttributes.Directory) - { - //if (IsBadFolder(fileSystemInfo.Name)) - //{ - // return false; - //} - } - else - { - if (EntityResolutionHelper.IsAudioFile(fileSystemInfo.FullName) && - !string.Equals(fileSystem.GetFileNameWithoutExtension(fileSystemInfo), BaseItem.ThemeSongFilename)) - { - return false; - } - } - } + //// It's a season folder if it's named as such and does not contain any audio files, apart from theme.mp3 + //foreach (var fileSystemInfo in directoryService.GetFileSystemEntries(path)) + //{ + // var attributes = fileSystemInfo.Attributes; + + // if ((attributes & FileAttributes.Hidden) == FileAttributes.Hidden) + // { + // continue; + // } + + // // Can't enforce this because files saved by Bitcasa are always marked System + // //if ((attributes & FileAttributes.System) == FileAttributes.System) + // //{ + // // continue; + // //} + + // if ((attributes & FileAttributes.Directory) == FileAttributes.Directory) + // { + // //if (IsBadFolder(fileSystemInfo.Name)) + // //{ + // // return false; + // //} + // } + // else + // { + // if (EntityResolutionHelper.IsAudioFile(fileSystemInfo.FullName) && + // !string.Equals(fileSystem.GetFileNameWithoutExtension(fileSystemInfo), BaseItem.ThemeSongFilename)) + // { + // return false; + // } + // } + //} return true; } |
