aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-12-31 21:03:30 +0100
committerGitHub <noreply@github.com>2021-12-31 21:03:30 +0100
commit1725b2ee69a3eae988239e02381ea51da93364bd (patch)
treed6bd4ad8f4445e3fca7a1c303490448764fbee91 /Emby.Server.Implementations/Library/PathExtensions.cs
parent1b9cb8cca6862c6d791f4121104ca508ddb903a5 (diff)
parent25abe479ebe54a341baa72fd07e7d37cefe21a20 (diff)
Merge pull request #7076 from crobibero/providerid
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
-rw-r--r--Emby.Server.Implementations/Library/PathExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs
index 6f61dc713..64e7d5446 100644
--- a/Emby.Server.Implementations/Library/PathExtensions.cs
+++ b/Emby.Server.Implementations/Library/PathExtensions.cs
@@ -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.