mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
added image by name api methods
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user