mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 04:51:54 +00: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)
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace Emby.Server.Implementations.ServerManager
|
||||
return;
|
||||
}
|
||||
|
||||
var charset = _textEncoding.GetDetectedEncodingName(bytes, null);
|
||||
var charset = _textEncoding.GetDetectedEncodingName(bytes, null, false);
|
||||
|
||||
if (string.Equals(charset, "utf-8", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user