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.Server.Implementations/Library/LibraryManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs') diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index ed4e1dcb3..fb05c8c43 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -634,6 +634,17 @@ namespace MediaBrowser.Server.Implementations.Library return GetItemByName(ConfigurationManager.ApplicationPaths.GenrePath, name, CancellationToken.None, allowSlowProviders); } + /// + /// Gets the genre. + /// + /// The name. + /// if set to true [allow slow providers]. + /// Task{MusicGenre}. + public Task GetMusicGenre(string name, bool allowSlowProviders = false) + { + return GetItemByName(ConfigurationManager.ApplicationPaths.MusicGenrePath, name, CancellationToken.None, allowSlowProviders); + } + /// /// Gets a Genre /// -- cgit v1.2.3