From 59b0fa73fb85630efe0b159b869db5ec9863f302 Mon Sep 17 00:00:00 2001 From: kookxiang Date: Wed, 10 Jul 2024 00:20:20 +0800 Subject: [PATCH] fix season index number #138 --- Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs b/Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs index 5263a53..e2439b3 100644 --- a/Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs +++ b/Jellyfin.Plugin.Bangumi/Providers/EpisodeProvider.cs @@ -106,7 +106,8 @@ public async Task> 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)