fix HasProviderId and add tests

This commit is contained in:
cvium
2021-03-03 12:28:40 +01:00
parent a49f5d2a44
commit 8b72b902f5
2 changed files with 20 additions and 1 deletions

View File

@@ -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>