added image by name api methods

This commit is contained in:
Luke Pulverenti
2013-05-02 10:30:38 -04:00
parent b11d06f36f
commit 73b76a4f18
8 changed files with 51 additions and 4 deletions

View File

@@ -132,6 +132,7 @@ namespace MediaBrowser.Server.Implementations
_musicArtistsPath = null;
_generalPath = null;
_ratingsPath = null;
_mediaInfoImagesPath = null;
}
}
@@ -285,6 +286,31 @@ namespace MediaBrowser.Server.Implementations
}
}
/// <summary>
/// The _media info images path
/// </summary>
private string _mediaInfoImagesPath;
/// <summary>
/// Gets the media info images path.
/// </summary>
/// <value>The media info images path.</value>
public string MediaInfoImagesPath
{
get
{
if (_mediaInfoImagesPath == null)
{
_mediaInfoImagesPath = Path.Combine(ItemsByNamePath, "MediaInfo");
if (!Directory.Exists(_mediaInfoImagesPath))
{
Directory.CreateDirectory(_mediaInfoImagesPath);
}
}
return _mediaInfoImagesPath;
}
}
/// <summary>
/// The _user configuration directory path
/// </summary>