From d017249d9e84a7cc27364260eaaf042c37eb9c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Miguel=20Alm=C3=A1nzar?= Date: Sun, 9 Jun 2013 15:58:51 -0400 Subject: [PATCH] Fixed bug #331 Fixed issue with incorrect season number when path contains a number. --- MediaBrowser.Controller/Library/TVUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Library/TVUtils.cs b/MediaBrowser.Controller/Library/TVUtils.cs index 0df48bdf48..046dd7698f 100644 --- a/MediaBrowser.Controller/Library/TVUtils.cs +++ b/MediaBrowser.Controller/Library/TVUtils.cs @@ -129,7 +129,7 @@ namespace MediaBrowser.Controller.Library if (index != -1) { - return GetSeasonNumberFromPathSubstring(path.Substring(index + name.Length)); + return GetSeasonNumberFromPathSubstring(filename.Substring(index + name.Length)); } }