Skip to content

Commit

Permalink
Only generate url when there is externalId for season (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 authored Oct 29, 2024
1 parent 31e25b3 commit 6df261b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public IEnumerable<string> 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}";
}
Expand Down

0 comments on commit 6df261b

Please sign in to comment.