mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
3.2.20.5
This commit is contained in:
@@ -778,16 +778,16 @@ namespace Emby.Server.Implementations.Dto
|
||||
.Select(i => new NameIdPair
|
||||
{
|
||||
Name = i,
|
||||
Id = GetStudioId(i, item)
|
||||
Id = GetGenreId(i, item)
|
||||
})
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
private string GetStudioId(string name, BaseItem owner)
|
||||
private string GetGenreId(string name, BaseItem owner)
|
||||
{
|
||||
if (owner is IHasMusicGenres)
|
||||
{
|
||||
return _libraryManager.GetGameGenreId(name).ToString("N");
|
||||
return _libraryManager.GetMusicGenreId(name).ToString("N");
|
||||
}
|
||||
|
||||
if (owner is Game || owner is GameSystem)
|
||||
|
||||
Reference in New Issue
Block a user