aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Controller/Library/TVUtils.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Library/TVUtils.cs b/MediaBrowser.Controller/Library/TVUtils.cs
index 0df48bdf4..046dd7698 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));
}
}