Skip to content

Commit

Permalink
fix season index number #138
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed Jul 9, 2024
1 parent 1f70dbe commit 59b0fa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public async Task<MetadataResult<Episode>> GetMetadata(EpisodeInfo info, Cancell
else if (parent is Season season)
{
result.Item.SeasonId = season.Id;
result.Item.ParentIndexNumber = season.IndexNumber;
if (season.IndexNumber != null)
result.Item.ParentIndexNumber = season.IndexNumber;
}

if (episode.Type == EpisodeType.Normal && result.Item.ParentIndexNumber > 0)
Expand Down

0 comments on commit 59b0fa7

Please sign in to comment.