aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/TV
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2025-02-21 11:58:46 +0100
committerShadowghost <Ghost_of_Stone@web.de>2025-02-21 11:58:46 +0100
commit5ff2767012e2970cedb697a48eabd4949c348f2c (patch)
tree01dff7d021db22b5a3de5fe5522efcd53aaca473 /MediaBrowser.Providers/TV
parent5303445c9b4c9934145151f20c084033ffd1e7c6 (diff)
Use TryGetProviderId where possible
Diffstat (limited to 'MediaBrowser.Providers/TV')
-rw-r--r--MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs b/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs
index f6516fdde..52b0583e5 100644
--- a/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs
+++ b/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs
@@ -16,8 +16,7 @@ public class Zap2ItExternalUrlProvider : IExternalUrlProvider
/// <inheritdoc/>
public IEnumerable<string> GetExternalUrls(BaseItem item)
{
- var externalId = item.GetProviderId(MetadataProvider.Zap2It);
- if (!string.IsNullOrEmpty(externalId))
+ if (item.TryGetProviderId(MetadataProvider.Zap2It, out var externalId))
{
yield return $"http://tvlistings.zap2it.com/overview.html?programSeriesId={externalId}";
}