Skip to content

The Free Software Media System - Server Backend & API

Fixed bug #331

Luis Miguel Almánzard017249d9e84
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));
}
}