From 59a3dcc8c1c6b41560bd48507cfcf4f0ca0a8862 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 18 Aug 2012 16:38:02 -0400 Subject: Slight re-work of ApplicationPaths so that we can have inherited versions for the UI and Server --- MediaBrowser.Controller/Library/ItemController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Controller/Library/ItemController.cs') diff --git a/MediaBrowser.Controller/Library/ItemController.cs b/MediaBrowser.Controller/Library/ItemController.cs index 10648eca09..8d269679f5 100644 --- a/MediaBrowser.Controller/Library/ItemController.cs +++ b/MediaBrowser.Controller/Library/ItemController.cs @@ -305,7 +305,7 @@ namespace MediaBrowser.Controller.Library /// public Person GetPerson(string name) { - string path = Path.Combine(ApplicationPaths.PeoplePath, name); + string path = Path.Combine(Kernel.Instance.ApplicationPaths.PeoplePath, name); return GetImagesByNameItem(path, name); } @@ -315,7 +315,7 @@ namespace MediaBrowser.Controller.Library /// public Studio GetStudio(string name) { - string path = Path.Combine(ApplicationPaths.StudioPath, name); + string path = Path.Combine(Kernel.Instance.ApplicationPaths.StudioPath, name); return GetImagesByNameItem(path, name); } @@ -325,7 +325,7 @@ namespace MediaBrowser.Controller.Library /// public Genre GetGenre(string name) { - string path = Path.Combine(ApplicationPaths.GenrePath, name); + string path = Path.Combine(Kernel.Instance.ApplicationPaths.GenrePath, name); return GetImagesByNameItem(path, name); } @@ -335,7 +335,7 @@ namespace MediaBrowser.Controller.Library /// public Year GetYear(int value) { - string path = Path.Combine(ApplicationPaths.YearPath, value.ToString()); + string path = Path.Combine(Kernel.Instance.ApplicationPaths.YearPath, value.ToString()); return GetImagesByNameItem(path, value.ToString()); } -- cgit v1.2.3