From ee1fa6e816f0bf836c21a5901bf3d282f6e45dfa Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Tue, 14 Aug 2012 12:06:46 -0400 Subject: Implemented some IBN functionality - GetPerson, GetYear, GetStudio, GetGenre --- .../Configuration/ApplicationPaths.cs | 86 +++++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Common/Configuration/ApplicationPaths.cs') diff --git a/MediaBrowser.Common/Configuration/ApplicationPaths.cs b/MediaBrowser.Common/Configuration/ApplicationPaths.cs index 43cf4cf88..dc87749cf 100644 --- a/MediaBrowser.Common/Configuration/ApplicationPaths.cs +++ b/MediaBrowser.Common/Configuration/ApplicationPaths.cs @@ -175,7 +175,7 @@ namespace MediaBrowser.Common.Configuration /// /// Gets the path to the Images By Name directory /// - public static string IBNPath + public static string ImagesByNamePath { get { @@ -192,6 +192,90 @@ namespace MediaBrowser.Common.Configuration } } + private static string _PeoplePath; + /// + /// Gets the path to the People directory + /// + public static string PeoplePath + { + get + { + if (_PeoplePath == null) + { + _PeoplePath = Path.Combine(ImagesByNamePath, "People"); + if (!Directory.Exists(_PeoplePath)) + { + Directory.CreateDirectory(_PeoplePath); + } + } + + return _PeoplePath; + } + } + + private static string _GenrePath; + /// + /// Gets the path to the Genre directory + /// + public static string GenrePath + { + get + { + if (_GenrePath == null) + { + _GenrePath = Path.Combine(ImagesByNamePath, "Genre"); + if (!Directory.Exists(_GenrePath)) + { + Directory.CreateDirectory(_GenrePath); + } + } + + return _GenrePath; + } + } + + private static string _StudioPath; + /// + /// Gets the path to the Studio directory + /// + public static string StudioPath + { + get + { + if (_StudioPath == null) + { + _StudioPath = Path.Combine(ImagesByNamePath, "Studio"); + if (!Directory.Exists(_StudioPath)) + { + Directory.CreateDirectory(_StudioPath); + } + } + + return _StudioPath; + } + } + + private static string _yearPath; + /// + /// Gets the path to the Year directory + /// + public static string YearPath + { + get + { + if (_yearPath == null) + { + _yearPath = Path.Combine(ImagesByNamePath, "Year"); + if (!Directory.Exists(_yearPath)) + { + Directory.CreateDirectory(_yearPath); + } + } + + return _yearPath; + } + } + /// /// Gets the path to the application's ProgramDataFolder /// -- cgit v1.2.3