From 18325159c5b46d2aa31d2dafd837ede7214b28ef Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 10 Jun 2013 23:31:00 -0400 Subject: added a new MusicGenre entity --- MediaBrowser.Controller/Entities/Audio/MusicGenre.cs | 18 ++++++++++++++++++ MediaBrowser.Controller/IServerApplicationPaths.cs | 6 ++++++ MediaBrowser.Controller/Library/ILibraryManager.cs | 8 ++++++++ MediaBrowser.Controller/MediaBrowser.Controller.csproj | 1 + 4 files changed, 33 insertions(+) create mode 100644 MediaBrowser.Controller/Entities/Audio/MusicGenre.cs (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs b/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs new file mode 100644 index 0000000000..8d34cf7dae --- /dev/null +++ b/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs @@ -0,0 +1,18 @@ + +namespace MediaBrowser.Controller.Entities.Audio +{ + /// + /// Class MusicGenre + /// + public class MusicGenre : BaseItem + { + /// + /// Gets the user data key. + /// + /// System.String. + public override string GetUserDataKey() + { + return "MusicGenre-" + Name; + } + } +} diff --git a/MediaBrowser.Controller/IServerApplicationPaths.cs b/MediaBrowser.Controller/IServerApplicationPaths.cs index 9325d20545..58b6bb12f2 100644 --- a/MediaBrowser.Controller/IServerApplicationPaths.cs +++ b/MediaBrowser.Controller/IServerApplicationPaths.cs @@ -40,6 +40,12 @@ namespace MediaBrowser.Controller /// The genre path. string GenrePath { get; } + /// + /// Gets the music genre path. + /// + /// The music genre path. + string MusicGenrePath { get; } + /// /// Gets the artists path. /// diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index ff859af9c1..dd2afcb3f5 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -81,6 +81,14 @@ namespace MediaBrowser.Controller.Library /// Task{Genre}. Task GetGenre(string name, bool allowSlowProviders = false); + /// + /// Gets the genre. + /// + /// The name. + /// if set to true [allow slow providers]. + /// Task{MusicGenre}. + Task GetMusicGenre(string name, bool allowSlowProviders = false); + /// /// Gets a Year /// diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 96989f5687..ba9e9f5bde 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -73,6 +73,7 @@ + -- cgit v1.2.3