mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
More cleanup
This commit is contained in:
committed by
Cody Robibero (Rebase PR Action)
parent
4441513ca4
commit
ea8f40e84a
@@ -282,8 +282,6 @@ namespace Emby.Server.Implementations.Data
|
||||
typeof(AggregateFolder)
|
||||
};
|
||||
|
||||
private readonly Dictionary<string, string> _types = GetTypeMapDictionary();
|
||||
|
||||
private static readonly Dictionary<BaseItemKind, string> _baseItemKindNames = new()
|
||||
{
|
||||
{ BaseItemKind.AggregateFolder, typeof(AggregateFolder).FullName },
|
||||
@@ -3440,11 +3438,6 @@ namespace Emby.Server.Implementations.Data
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool IsValidType(string value)
|
||||
{
|
||||
return IsAlphaNumeric(value);
|
||||
}
|
||||
|
||||
private bool IsValidMediaType(string value)
|
||||
{
|
||||
return IsAlphaNumeric(value);
|
||||
@@ -4711,7 +4704,7 @@ namespace Emby.Server.Implementations.Data
|
||||
if (statement == null)
|
||||
{
|
||||
int index = 0;
|
||||
string excludedTags = string.Join(',', query.ExcludeInheritedTags.Select(t => paramName + index++));
|
||||
string excludedTags = string.Join(',', query.ExcludeInheritedTags.Select(_ => paramName + index++));
|
||||
whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + excludedTags + ")) is null)");
|
||||
}
|
||||
else
|
||||
@@ -4968,21 +4961,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||
}
|
||||
}
|
||||
|
||||
private static Dictionary<string, string> GetTypeMapDictionary()
|
||||
{
|
||||
var dict = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
foreach (var t in _knownTypes)
|
||||
{
|
||||
dict[t.Name] = t.FullName;
|
||||
}
|
||||
|
||||
dict["Program"] = typeof(LiveTvProgram).FullName;
|
||||
dict["TvChannel"] = typeof(LiveTvChannel).FullName;
|
||||
|
||||
return dict;
|
||||
}
|
||||
|
||||
public void DeleteItem(Guid id)
|
||||
{
|
||||
if (id == Guid.Empty)
|
||||
|
||||
Reference in New Issue
Block a user