diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 7cee309d09..e78ebbc502 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -1012,7 +1012,7 @@ namespace Emby.Server.Implementations.Data
var providerDelimiterIndex = part.IndexOf('=');
if (providerDelimiterIndex != -1 && providerDelimiterIndex == part.LastIndexOf('='))
{
- item.SetProviderId(part.Slice(0, providerDelimiterIndex), part.Slice(providerDelimiterIndex + 1));
+ item.SetProviderId(part.Slice(0, providerDelimiterIndex).ToString(), part.Slice(providerDelimiterIndex + 1).ToString());
}
}
}
diff --git a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
index bc14da7f2f..09d14dc6a4 100644
--- a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
+++ b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
@@ -132,36 +132,6 @@ namespace MediaBrowser.Model.Entities
}
}
- ///
- /// Sets a provider id.
- ///
- /// The instance.
- /// The name.
- /// The value.
- public static void SetProviderId(this IHasProviderIds instance, ReadOnlySpan name, ReadOnlySpan value)
- {
- if (instance == null)
- {
- throw new ArgumentNullException(nameof(instance));
- }
-
- // If it's null remove the key from the dictionary
- if (value.IsEmpty)
- {
- instance.ProviderIds?.Remove(name.ToString());
- }
- else
- {
- // Ensure it exists
- if (instance.ProviderIds == null)
- {
- instance.ProviderIds = new Dictionary(StringComparer.OrdinalIgnoreCase);
- }
-
- instance.ProviderIds[name.ToString()] = value.ToString();
- }
- }
-
///
/// Sets a provider id.
///