From 6df261b076b189106704c4f003695ece1c489739 Mon Sep 17 00:00:00 2001 From: JQ <81431263+scampower3@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:58:58 +0800 Subject: [PATCH] Only generate url when there is externalId for season (#190) --- Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs index d1510a8..406afa8 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs @@ -46,7 +46,7 @@ public IEnumerable GetExternalUrls(BaseItem item) displayOrder = "official"; } - if (_supportedOrders.Contains(displayOrder) && !string.IsNullOrEmpty(seriesSlugId)) + if (_supportedOrders.Contains(displayOrder) && !string.IsNullOrEmpty(seriesSlugId) && !string.IsNullOrEmpty(externalId)) { yield return TvdbUtils.TvdbBaseUrl + $"series/{seriesSlugId}/seasons/{displayOrder}/{item.IndexNumber}"; }