mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
added a new MusicGenre entity
This commit is contained in:
18
MediaBrowser.Controller/Entities/Audio/MusicGenre.cs
Normal file
18
MediaBrowser.Controller/Entities/Audio/MusicGenre.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,12 @@ namespace MediaBrowser.Controller
|
||||
/// <value>The genre path.</value>
|
||||
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>
|
||||
|
||||
@@ -81,6 +81,14 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <returns>Task{Genre}.</returns>
|
||||
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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user