Compare commits

..

2 Commits

Author SHA1 Message Date
03ca480fe8 remove empty lines at start of description 2023-06-01 14:59:09 +02:00
c2915468a5 status .tolower 2023-06-01 14:58:58 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -114,6 +114,9 @@ public class Manganato : Connector
string description = document.DocumentNode.Descendants("div").First(d => d.HasClass("panel-story-info-description")) string description = document.DocumentNode.Descendants("div").First(d => d.HasClass("panel-story-info-description"))
.InnerText.Replace("Description :", ""); .InnerText.Replace("Description :", "");
while (description.StartsWith('\n'))
description = description.Substring(1);
return new Publication(sortName, author, description, altTitles, tags.ToArray(), posterUrl, coverFileNameInCache, links, return new Publication(sortName, author, description, altTitles, tags.ToArray(), posterUrl, coverFileNameInCache, links,

View File

@ -95,9 +95,9 @@ public readonly struct Publication
{ {
this.name = name; this.name = name;
this.year = year; this.year = year;
if(status == "ongoing" || status == "hiatus") if(status.ToLower() == "ongoing" || status.ToLower() == "hiatus")
this.status = "Continuing"; this.status = "Continuing";
else if (status == "completed" || status == "cancelled") else if (status.ToLower() == "completed" || status.ToLower() == "cancelled")
this.status = "Ended"; this.status = "Ended";
else else
this.status = status; this.status = status;