Skip to content

Commit

Permalink
Re-add check for AverageRuntime for null
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 committed Dec 3, 2023
1 parent 538bc73 commit 647ba15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,10 @@ private static void MapSeriesToResult(MetadataResult<Series> result, SeriesExten
series.ProductionYear = date.Year;
}

series.RunTimeTicks = TimeSpan.FromMinutes(tvdbSeries.AverageRuntime).Ticks;
if (tvdbSeries.AverageRuntime is not null)
{
series.RunTimeTicks = TimeSpan.FromMinutes(tvdbSeries.AverageRuntime.Value).Ticks;
}

foreach (var genre in tvdbSeries.Genres)
{
Expand Down

0 comments on commit 647ba15

Please sign in to comment.