From 12d69194218013498e9e8c1943c89f9fc4c49095 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 26 May 2016 15:46:58 +0200 Subject: [PATCH] Do not parse -2 chapter number --- .../main/java/eu/kanade/tachiyomi/util/ChapterRecognition.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterRecognition.kt b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterRecognition.kt index 31c133d63..57a806f61 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterRecognition.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterRecognition.kt @@ -34,8 +34,8 @@ object ChapterRecognition { private val unwantedWhiteSpace = Regex("""(\s)(extra|special|omake)""") fun parseChapterNumber(chapter: Chapter, manga: Manga) { - //If chapter number is known return. - if (chapter.chapter_number != -1f) + // If chapter number is known return. + if (chapter.chapter_number == -2f || chapter.chapter_number > -1f) return // Get chapter title with lower case