aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Configuration/ApplicationPaths.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-14 12:06:46 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-14 12:06:46 -0400
commitee1fa6e816f0bf836c21a5901bf3d282f6e45dfa (patch)
treef81c932fde7ffce5554741725cbe5c3f40d25f14 /MediaBrowser.Common/Configuration/ApplicationPaths.cs
parente2fe4174da0b814486a6dac60b066eec8075040d (diff)
Implemented some IBN functionality - GetPerson, GetYear, GetStudio, GetGenre
Diffstat (limited to 'MediaBrowser.Common/Configuration/ApplicationPaths.cs')
-rw-r--r--MediaBrowser.Common/Configuration/ApplicationPaths.cs86
1 files changed, 85 insertions, 1 deletions
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
/// <summary>
/// Gets the path to the Images By Name directory
/// </summary>
- public static string IBNPath
+ public static string ImagesByNamePath
{
get
{
@@ -192,6 +192,90 @@ namespace MediaBrowser.Common.Configuration
}
}
+ private static string _PeoplePath;
+ /// <summary>
+ /// Gets the path to the People directory
+ /// </summary>
+ 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;
+ /// <summary>
+ /// Gets the path to the Genre directory
+ /// </summary>
+ 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;
+ /// <summary>
+ /// Gets the path to the Studio directory
+ /// </summary>
+ 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;
+ /// <summary>
+ /// Gets the path to the Year directory
+ /// </summary>
+ public static string YearPath
+ {
+ get
+ {
+ if (_yearPath == null)
+ {
+ _yearPath = Path.Combine(ImagesByNamePath, "Year");
+ if (!Directory.Exists(_yearPath))
+ {
+ Directory.CreateDirectory(_yearPath);
+ }
+ }
+
+ return _yearPath;
+ }
+ }
+
/// <summary>
/// Gets the path to the application's ProgramDataFolder
/// </summary>