diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-04 21:22:26 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-04 21:22:26 -0400 |
| commit | d6aee6a2ed9f0882c73765bb27962a30d9e4a5ce (patch) | |
| tree | a71a0db1c75a49a0e06a750a148486502f022aec /MediaBrowser.Controller/Library | |
| parent | e2b3320f8000b695f5e45c79adc12b03505e4dff (diff) | |
fixes #865 - Series Season folders
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/TVUtils.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/TVUtils.cs b/MediaBrowser.Controller/Library/TVUtils.cs index 0681a8cd1..88eadda00 100644 --- a/MediaBrowser.Controller/Library/TVUtils.cs +++ b/MediaBrowser.Controller/Library/TVUtils.cs @@ -129,6 +129,12 @@ namespace MediaBrowser.Controller.Library return 0; } + int val; + if (int.TryParse(filename, NumberStyles.Integer, CultureInfo.InvariantCulture, out val)) + { + return val; + } + // Look for one of the season folder names foreach (var name in SeasonFolderNames) { |
