Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Don't tag a series as completed if count is 0. (#917)
Joseph Milazzoad3c8bb2c770
diff --git a/API/Services/MetadataService.cs b/API/Services/MetadataService.csindex 4df2e31fa..9c24b1c38 100644--- a/API/Services/MetadataService.cs+++ b/API/Services/MetadataService.cs@@ -310,7 +310,7 @@ public class MetadataService : IMetadataServiceseries.Metadata.Count = chapters.Max(chapter => chapter.TotalCount);series.Metadata.PublicationStatus = PublicationStatus.OnGoing;- if (chapters.Max(chapter => chapter.Count) >= series.Metadata.Count)+ if (chapters.Max(chapter => chapter.Count) >= series.Metadata.Count && series.Metadata.Count > 0){series.Metadata.PublicationStatus = PublicationStatus.Completed;}