diff --git a/src/all/mangadventure/build.gradle b/src/all/mangadventure/build.gradle index 71c1a9fa7..80bcbdfed 100644 --- a/src/all/mangadventure/build.gradle +++ b/src/all/mangadventure/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangAdventure' pkgNameSuffix = 'all.mangadventure' extClass = '.MangAdventureFactory' - extVersionCode = 7 + extVersionCode = 8 libVersion = '1.2' } diff --git a/src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureExtensions.kt b/src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureExtensions.kt index d8c398373..1dd793644 100644 --- a/src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureExtensions.kt +++ b/src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureExtensions.kt @@ -80,7 +80,7 @@ val SChapter.path: String */ fun SChapter.fromJSON(obj: JSONObject) = apply { url = obj.getString("url") - chapter_number = obj.optString("chapter", "0").toFloat() + chapter_number = obj.optString("chapter", "-1").toFloat() date_upload = MangAdventure.httpDateToTimestamp(obj.getString("date")) scanlator = obj.getJSONArray("groups").joinField("name", " & ") name = obj.optString( diff --git a/src/all/mangaplus/build.gradle b/src/all/mangaplus/build.gradle index 723f696f1..d4f7b7b9e 100644 --- a/src/all/mangaplus/build.gradle +++ b/src/all/mangaplus/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MANGA Plus by SHUEISHA' pkgNameSuffix = 'all.mangaplus' extClass = '.MangaPlusFactory' - extVersionCode = 12 + extVersionCode = 13 libVersion = '1.2' } diff --git a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt index f463bb0d8..bbbbccab2 100644 --- a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt +++ b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt @@ -238,7 +238,7 @@ abstract class MangaPlus( scanlator = "Shueisha" date_upload = 1000L * it.startTimeStamp url = "#/viewer/${it.chapterId}" - chapter_number = it.name.substringAfter("#").toFloatOrNull() ?: 0f + chapter_number = it.name.substringAfter("#").toFloatOrNull() ?: -1f } } } diff --git a/src/all/toomics/build.gradle b/src/all/toomics/build.gradle index 5fb34cc79..6d04ab7c7 100644 --- a/src/all/toomics/build.gradle +++ b/src/all/toomics/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Toomics' pkgNameSuffix = 'all.toomics' extClass = '.ToomicsFactory' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' } diff --git a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt index 4c5d3d8dc..0a0084d13 100644 --- a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt +++ b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt @@ -126,7 +126,7 @@ abstract class ToomicsGlobal( val numText = if (num.isNotEmpty()) "$num - " else "" name = numText + element.select("div.cell-title")?.first()?.ownText() - chapter_number = num.toFloatOrNull() ?: 0f + chapter_number = num.toFloatOrNull() ?: -1f date_upload = parseChapterDate(element.select("div.cell-time time").text()!!) scanlator = "Toomics" url = element.select("a").attr("onclick") diff --git a/src/en/vizshonenjump/build.gradle b/src/en/vizshonenjump/build.gradle index cbabb3752..db1032467 100644 --- a/src/en/vizshonenjump/build.gradle +++ b/src/en/vizshonenjump/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'VIZ Shonen Jump' pkgNameSuffix = 'en.vizshonenjump' extClass = '.VizShonenJump' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/en/vizshonenjump/src/eu/kanade/tachiyomi/extension/en/vizshonenjump/VizShonenJump.kt b/src/en/vizshonenjump/src/eu/kanade/tachiyomi/extension/en/vizshonenjump/VizShonenJump.kt index 414e1a57a..724a86925 100644 --- a/src/en/vizshonenjump/src/eu/kanade/tachiyomi/extension/en/vizshonenjump/VizShonenJump.kt +++ b/src/en/vizshonenjump/src/eu/kanade/tachiyomi/extension/en/vizshonenjump/VizShonenJump.kt @@ -167,7 +167,7 @@ class VizShonenJump : ParsedHttpSource() { date_upload = leftSide.select("td[align=right]").first()!!.text().toDate() } - chapter_number = name.substringAfter("Ch. ").toFloatOrNull() ?: 0F + chapter_number = name.substringAfter("Ch. ").toFloatOrNull() ?: -1F scanlator = "VIZ Media" url = element.attr("data-target-url") } diff --git a/src/fr/mangakawaii/build.gradle b/src/fr/mangakawaii/build.gradle index 8e88ea5e7..c5a04e92e 100644 --- a/src/fr/mangakawaii/build.gradle +++ b/src/fr/mangakawaii/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mangakawaii' pkgNameSuffix = 'fr.mangakawaii' extClass = '.MangaKawaii' - extVersionCode = 9 + extVersionCode = 10 libVersion = '1.2' } diff --git a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt index 2863f4d42..a5ada6c9f 100644 --- a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt +++ b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt @@ -69,7 +69,7 @@ class MangaKawaii : ParsedHttpSource() { val chapter = SChapter.create() chapter.url = element.select("a.list-item__title").attr("href") chapter.name = element.select("a.list-item__title").text().trim() - chapter.chapter_number = element.select("a.list-item__title").text().substringAfter("Chapitre").replace(Regex("""[,-]"""), ".").trim().toFloatOrNull() ?: 0F + chapter.chapter_number = element.select("a.list-item__title").text().substringAfter("Chapitre").replace(Regex("""[,-]"""), ".").trim().toFloatOrNull() ?: -1F chapter.date_upload = parseDate(element.select("div.chapter-item__date").text()) return chapter } diff --git a/src/ja/nikkangecchan/build.gradle b/src/ja/nikkangecchan/build.gradle index 4e9cdcc3a..2a1337d09 100644 --- a/src/ja/nikkangecchan/build.gradle +++ b/src/ja/nikkangecchan/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Nikkangecchan' pkgNameSuffix = 'ja.nikkangecchan' extClass = '.Nikkangecchan' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt b/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt index ca0228600..8550824d3 100644 --- a/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt +++ b/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt @@ -90,7 +90,7 @@ class Nikkangecchan : ParsedHttpSource() { return SChapter.create().apply { name = "$title - $dataTitle" - chapter_number = element.select("h4.episodeTitle").first().text().toFloatOrNull() ?: 0f + chapter_number = element.select("h4.episodeTitle").first().text().toFloatOrNull() ?: -1f scanlator = "Akita Publishing" setUrlWithoutDomain(baseUrl + episodePage.attr("data-src").substringBeforeLast("/")) } diff --git a/src/pt/hipercool/build.gradle b/src/pt/hipercool/build.gradle index 41c89a26b..1afe4d90a 100644 --- a/src/pt/hipercool/build.gradle +++ b/src/pt/hipercool/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'HipercooL' pkgNameSuffix = 'pt.hipercool' extClass = '.Hipercool' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' containsNsfw = true } diff --git a/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt b/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt index a1a89fd38..4d5db20bd 100644 --- a/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt +++ b/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt @@ -168,7 +168,7 @@ class Hipercool : HttpSource() { private fun chapterListItemParse(book: JsonObject, obj: JsonObject): SChapter = SChapter.create().apply { name = obj["title"].string - chapter_number = obj["title"].string.toFloatOrNull() ?: 0f + chapter_number = obj["title"].string.toFloatOrNull() ?: -1f // The property is written wrong. date_upload = DATE_FORMATTER.tryParseTime(obj["publishied_at"].string) diff --git a/src/pt/mangasproject/build.gradle b/src/pt/mangasproject/build.gradle index ef3dc7a9a..ce049e44c 100644 --- a/src/pt/mangasproject/build.gradle +++ b/src/pt/mangasproject/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'mangásPROJECT' pkgNameSuffix = 'pt.mangasproject' extClass = '.MangasProjectFactory' - extVersionCode = 14 + extVersionCode = 15 libVersion = '1.2' } diff --git a/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt b/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt index 8306d1ff6..a6fa76a3a 100644 --- a/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt +++ b/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt @@ -239,7 +239,7 @@ abstract class MangasProject( .sorted() .joinToString() url = release["link"].string - chapter_number = obj["number"].string.toFloatOrNull() ?: 0f + chapter_number = obj["number"].string.toFloatOrNull() ?: -1f } } } diff --git a/src/pt/saikaiscan/build.gradle b/src/pt/saikaiscan/build.gradle index b2d1a711b..b73d10d1e 100644 --- a/src/pt/saikaiscan/build.gradle +++ b/src/pt/saikaiscan/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Saikai Scan' pkgNameSuffix = 'pt.saikaiscan' extClass = '.SaikaiScan' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt b/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt index 228d6ce92..222456220 100644 --- a/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt +++ b/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt @@ -119,7 +119,7 @@ class SaikaiScan : ParsedHttpSource() { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { scanlator = "Saikai Scan" - chapter_number = CHAPTER_REGEX.find(element.text())?.groupValues?.get(1)?.toFloatOrNull() ?: 1f + chapter_number = CHAPTER_REGEX.find(element.text())?.groupValues?.get(1)?.toFloatOrNull() ?: -1f name = element.text() url = element.attr("href") } diff --git a/src/pt/supermangas/build.gradle b/src/pt/supermangas/build.gradle index 3895c3c60..7ae0d1cdf 100644 --- a/src/pt/supermangas/build.gradle +++ b/src/pt/supermangas/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Super Mangás' pkgNameSuffix = 'pt.supermangas' extClass = '.SuperMangasFactory' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' containsNsfw = true } diff --git a/src/pt/supermangas/src/eu/kanade/tachiyomi/extension/pt/supermangas/SuperMangasGeneric.kt b/src/pt/supermangas/src/eu/kanade/tachiyomi/extension/pt/supermangas/SuperMangasGeneric.kt index 905d4a70c..55f0c0f7c 100644 --- a/src/pt/supermangas/src/eu/kanade/tachiyomi/extension/pt/supermangas/SuperMangasGeneric.kt +++ b/src/pt/supermangas/src/eu/kanade/tachiyomi/extension/pt/supermangas/SuperMangasGeneric.kt @@ -290,7 +290,7 @@ abstract class SuperMangasGeneric( override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { name = element.select("a").first()!!.text() - chapter_number = element.select("span[style]").first()!!.text().toFloatOrNull() ?: 0f + chapter_number = element.select("span[style]").first()!!.text().toFloatOrNull() ?: -1f setUrlWithoutDomain(element.select("a").first()!!.attr("href")) } diff --git a/src/pt/tsukimangas/build.gradle b/src/pt/tsukimangas/build.gradle index bfa652852..82616a015 100644 --- a/src/pt/tsukimangas/build.gradle +++ b/src/pt/tsukimangas/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Tsuki Mangás' pkgNameSuffix = 'pt.tsukimangas' extClass = '.TsukiMangas' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt b/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt index fb4699fe6..8417bcc19 100644 --- a/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt +++ b/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt @@ -230,7 +230,7 @@ class TsukiMangas : HttpSource() { private fun chapterListItemParse(obj: JsonObject, slug: String): SChapter = SChapter.create().apply { name = "Cap. " + obj["NUMERO"].string + (if (obj["TITULO"].string.isNotEmpty()) " - " + obj["TITULO"].string else "") - chapter_number = obj["NUMERO"].string.toFloatOrNull() ?: 0f + chapter_number = obj["NUMERO"].string.toFloatOrNull() ?: -1f scanlator = obj["scans"].array.joinToString { it.obj["NOME"].string } date_upload = DATE_FORMATTER.tryParseDate(obj["DATA"].string.substringBefore("T")) url = "/leitor/$slug/" + obj["NUMERO"].string diff --git a/src/pt/yesmangas/build.gradle b/src/pt/yesmangas/build.gradle index 4a6e0ad90..ff75ebb96 100644 --- a/src/pt/yesmangas/build.gradle +++ b/src/pt/yesmangas/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'YES Mangás' pkgNameSuffix = 'pt.yesmangas' extClass = '.YesMangas' - extVersionCode = 5 + extVersionCode = 6 libVersion = '1.2' } diff --git a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt index 372447c37..116236397 100644 --- a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt +++ b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt @@ -90,7 +90,7 @@ class YesMangas : ParsedHttpSource() { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { name = element.attr("title").substringAfter(" - ") - chapter_number = element.text().toFloatOrNull() ?: 1f + chapter_number = element.text().toFloatOrNull() ?: -1f setUrlWithoutDomain(element.attr("href")) } diff --git a/src/ru/henchan/build.gradle b/src/ru/henchan/build.gradle index 43c894367..182942a7e 100644 --- a/src/ru/henchan/build.gradle +++ b/src/ru/henchan/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Henchan' pkgNameSuffix = 'ru.henchan' extClass = '.Henchan' - extVersionCode = 19 + extVersionCode = 20 libVersion = '1.2' containsNsfw = true } diff --git a/src/ru/henchan/src/eu/kanade/tachiyomi/extension/ru/henchan/Henchan.kt b/src/ru/henchan/src/eu/kanade/tachiyomi/extension/ru/henchan/Henchan.kt index 59534087f..e81b55ac6 100644 --- a/src/ru/henchan/src/eu/kanade/tachiyomi/extension/ru/henchan/Henchan.kt +++ b/src/ru/henchan/src/eu/kanade/tachiyomi/extension/ru/henchan/Henchan.kt @@ -240,7 +240,7 @@ class Henchan : ParsedHttpSource() { chapter.setUrlWithoutDomain(element.select("h2 a").attr("href")) val chapterName = element.select("h2 a").attr("title") chapter.name = chapterName - chapter.chapter_number = "(глава\\s|часть\\s)(\\d+)".toRegex(RegexOption.IGNORE_CASE).find(chapterName)?.groupValues?.get(2)?.toFloat() ?: 0F + chapter.chapter_number = "(глава\\s|часть\\s)(\\d+)".toRegex(RegexOption.IGNORE_CASE).find(chapterName)?.groupValues?.get(2)?.toFloat() ?: -1F chapter.date_upload = Date().time // setting to current date because of a sorting in the "Recent updates" section return chapter } diff --git a/src/zh/manhuagui/build.gradle b/src/zh/manhuagui/build.gradle index b0acc7964..20f0ce3d2 100644 --- a/src/zh/manhuagui/build.gradle +++ b/src/zh/manhuagui/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'ManHuaGui' pkgNameSuffix = 'zh.manhuagui' extClass = '.Manhuagui' - extVersionCode = 5 + extVersionCode = 6 libVersion = '1.2' } diff --git a/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt b/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt index 632eb8c28..114373060 100644 --- a/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt +++ b/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt @@ -246,7 +246,7 @@ class Manhuagui : ConfigurableSource, ParsedHttpSource() { val currentChapter = SChapter.create() currentChapter.url = it.attr("href") currentChapter.name = it?.attr("title")?.trim() ?: it.select("span").first().ownText() - currentChapter.chapter_number = chNumRegex.find(currentChapter.name)?.value?.toFloatOrNull() ?: 0F + currentChapter.chapter_number = chNumRegex.find(currentChapter.name)?.value?.toFloatOrNull() ?: -1F // Manhuagui only provide upload date for latest chapter if (currentChapter.url == latestChapterHref) {