Compare commits

..

No commits in common. "03ca480fe83db7273d0a0acd004003e4bbf5654d" and "8805c53cb89940f1604ed03234a9906ab2eaa0fc" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -115,9 +115,6 @@ 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,
year, originalLanguage, status, publicationId); year, originalLanguage, status, publicationId);

View File

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