From 13c085322317352ab41f602d4cb248723b636880 Mon Sep 17 00:00:00 2001 From: Zero Date: Sat, 30 Jun 2018 14:31:47 +0800 Subject: [PATCH] Fixed TOC generation crash --- src/syosetuDownloader/Syousetsu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syosetuDownloader/Syousetsu.cs b/src/syosetuDownloader/Syousetsu.cs index 1e7cda4..6b5909d 100644 --- a/src/syosetuDownloader/Syousetsu.cs +++ b/src/syosetuDownloader/Syousetsu.cs @@ -386,7 +386,7 @@ public static void GenerateTableOfContents(Syousetsu.Constants details, HtmlDocu HtmlNodeCollection cssNodeList = doc.DocumentNode.SelectNodes("//link[@rel='stylesheet']"); var cssNode = (from n in cssNodeList - where n.Attributes["href"].Value.Contains("ncout.css") + where n.Attributes["href"].Value.Contains("ncout.css") || n.Attributes["href"].Value.Contains("ncout2.css") select n).ToList(); //get css link and download