Add ability to search by -

This commit is contained in:
Cody Robibero
2021-12-31 08:51:50 -07:00
parent 1b9cb8cca6
commit 25abe479eb
2 changed files with 8 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace Emby.Server.Implementations.Library
var attributeEnd = attributeIndex + attribute.Length;
if (attributeIndex > 0
&& str[attributeIndex - 1] == '['
&& str[attributeEnd] == '=')
&& (str[attributeEnd] == '=' || str[attributeEnd] == '-'))
{
var closingIndex = str[attributeEnd..].IndexOf(']');
// Must be at least 1 character before the closing bracket.