From 73b76a4f189eb4f5fe6677d322cfa5a2ff6bf3e5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 2 May 2013 10:30:38 -0400 Subject: added image by name api methods --- .../ServerApplicationPaths.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'MediaBrowser.Server.Implementations/ServerApplicationPaths.cs') diff --git a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs index 6d345a99c..c30c1b9db 100644 --- a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs +++ b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs @@ -132,6 +132,7 @@ namespace MediaBrowser.Server.Implementations _musicArtistsPath = null; _generalPath = null; _ratingsPath = null; + _mediaInfoImagesPath = null; } } @@ -285,6 +286,31 @@ namespace MediaBrowser.Server.Implementations } } + /// + /// The _media info images path + /// + private string _mediaInfoImagesPath; + /// + /// Gets the media info images path. + /// + /// The media info images path. + public string MediaInfoImagesPath + { + get + { + if (_mediaInfoImagesPath == null) + { + _mediaInfoImagesPath = Path.Combine(ItemsByNamePath, "MediaInfo"); + if (!Directory.Exists(_mediaInfoImagesPath)) + { + Directory.CreateDirectory(_mediaInfoImagesPath); + } + } + + return _mediaInfoImagesPath; + } + } + /// /// The _user configuration directory path /// -- cgit v1.2.3