mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 18:14:42 +01:00
fix HasProviderId and add tests
This commit is contained in:
@@ -22,7 +22,7 @@ namespace MediaBrowser.Model.Entities
|
||||
throw new ArgumentNullException(nameof(instance));
|
||||
}
|
||||
|
||||
return instance.ProviderIds?.ContainsKey(name) ?? false;
|
||||
return instance.TryGetProviderId(name, out _);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user