diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-10 23:31:00 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-10 23:31:00 -0400 |
| commit | 18325159c5b46d2aa31d2dafd837ede7214b28ef (patch) | |
| tree | 4966247933da5aeffad1672d87c67c1ebbb036f1 /MediaBrowser.Controller | |
| parent | fab983b6dcf7b282e8c96e3509209fcc568fb922 (diff) | |
added a new MusicGenre entity
Diffstat (limited to 'MediaBrowser.Controller')
4 files changed, 33 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs b/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs new file mode 100644 index 000000000..8d34cf7da --- /dev/null +++ b/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs @@ -0,0 +1,18 @@ + +namespace MediaBrowser.Controller.Entities.Audio +{ + /// <summary> + /// Class MusicGenre + /// </summary> + public class MusicGenre : BaseItem + { + /// <summary> + /// Gets the user data key. + /// </summary> + /// <returns>System.String.</returns> + public override string GetUserDataKey() + { + return "MusicGenre-" + Name; + } + } +} diff --git a/MediaBrowser.Controller/IServerApplicationPaths.cs b/MediaBrowser.Controller/IServerApplicationPaths.cs index 9325d2054..58b6bb12f 100644 --- a/MediaBrowser.Controller/IServerApplicationPaths.cs +++ b/MediaBrowser.Controller/IServerApplicationPaths.cs @@ -41,6 +41,12 @@ namespace MediaBrowser.Controller string GenrePath { get; } /// <summary> + /// Gets the music genre path. + /// </summary> + /// <value>The music genre path.</value> + string MusicGenrePath { get; } + + /// <summary> /// Gets the artists path. /// </summary> /// <value>The artists path.</value> diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index ff859af9c..dd2afcb3f 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -82,6 +82,14 @@ namespace MediaBrowser.Controller.Library Task<Genre> GetGenre(string name, bool allowSlowProviders = false); /// <summary> + /// Gets the genre. + /// </summary> + /// <param name="name">The name.</param> + /// <param name="allowSlowProviders">if set to <c>true</c> [allow slow providers].</param> + /// <returns>Task{MusicGenre}.</returns> + Task<MusicGenre> GetMusicGenre(string name, bool allowSlowProviders = false); + + /// <summary> /// Gets a Year /// </summary> /// <param name="value">The value.</param> diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 96989f568..ba9e9f5bd 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -73,6 +73,7 @@ <Compile Include="Configuration\IServerConfigurationManager.cs" /> <Compile Include="Dto\SessionInfoDtoBuilder.cs" /> <Compile Include="Entities\Audio\MusicAlbumDisc.cs" /> + <Compile Include="Entities\Audio\MusicGenre.cs" /> <Compile Include="Entities\IByReferenceItem.cs" /> <Compile Include="Entities\MusicVideo.cs" /> <Compile Include="Library\ILibraryPostScanTask.cs" /> |
