aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2021-03-26 17:06:01 +0100
committerDavid <daullmer@gmail.com>2021-03-26 17:16:29 +0100
commit78f7fdeaccee7f321740ede24dee797622b44f8b (patch)
treeb8348e2774fcd3ee7f901bb44624c2eb56328357 /Emby.Server.Implementations/Library/PathExtensions.cs
parent7685569480409f2703fc6ead32d093a08d783312 (diff)
Rename methods and optimize allocations
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
-rw-r--r--Emby.Server.Implementations/Library/PathExtensions.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs
index 72fe5a854..73236bad8 100644
--- a/Emby.Server.Implementations/Library/PathExtensions.cs
+++ b/Emby.Server.Implementations/Library/PathExtensions.cs
@@ -44,8 +44,8 @@ namespace Emby.Server.Implementations.Library
// for imdbid we also accept pattern matching
if (string.Equals(attribute, "imdbid", StringComparison.OrdinalIgnoreCase))
{
- var match = ProviderIdParsers.TryParseImdbId(str, out var imdbId);
- return match ? imdbId : null;
+ var match = ProviderIdParsers.TryFindImdbId(str, out var imdbId);
+ return match ? imdbId.ToString() : null;
}
return null;