From a8cb5c2794c91ed104e0383b3fe8d330bb9ea316 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 5 Jun 2022 11:49:11 -0400 Subject: [PATCH] Mark self-hosted sources as unmetered (#12077) --- src/all/kavita/CHANGELOG.md | 6 ++++++ src/all/kavita/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt | 3 ++- src/all/komga/CHANGELOG.md | 8 ++++++++ src/all/komga/build.gradle | 2 +- src/all/lanraragi/CHANGELOG.md | 7 +++++++ src/all/lanraragi/build.gradle | 2 +- .../kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt | 3 ++- src/all/mango/CHANGELOG.md | 6 +++++- src/all/mango/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt | 3 ++- src/all/tachidesk/build.gradle | 2 +- .../kanade/tachiyomi/extension/all/tachidesk/Tachidesk.kt | 3 ++- 13 files changed, 39 insertions(+), 10 deletions(-) diff --git a/src/all/kavita/CHANGELOG.md b/src/all/kavita/CHANGELOG.md index 906d30039..9c9d5bdf1 100644 --- a/src/all/kavita/CHANGELOG.md +++ b/src/all/kavita/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.3.4 + +### Features + +* Exclude from bulk update warnings + ## 1.2.3 ### Fix diff --git a/src/all/kavita/build.gradle b/src/all/kavita/build.gradle index b6967e701..cf547ab87 100644 --- a/src/all/kavita/build.gradle +++ b/src/all/kavita/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Kavita' pkgNameSuffix = 'all.kavita' extClass = '.KavitaFactory' - extVersionCode = 3 + extVersionCode = 4 } dependencies { diff --git a/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt b/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt index 5f6dde2f4..207e2a218 100644 --- a/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt +++ b/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt @@ -31,6 +31,7 @@ import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.source.ConfigurableSource +import eu.kanade.tachiyomi.source.UnmeteredSource import eu.kanade.tachiyomi.source.model.Filter import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.MangasPage @@ -63,7 +64,7 @@ import java.io.IOException import java.net.ConnectException import java.security.MessageDigest -class Kavita(private val suffix: String = "") : ConfigurableSource, HttpSource() { +class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSource, HttpSource() { class CompareChapters { companion object : Comparator { override fun compare(a: SChapter, b: SChapter): Int { diff --git a/src/all/komga/CHANGELOG.md b/src/all/komga/CHANGELOG.md index a8da2a03b..704fd4317 100644 --- a/src/all/komga/CHANGELOG.md +++ b/src/all/komga/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.3.40 + +Minimum Komga version required: `0.151.0` + +### Features + +* Exclude from bulk update warnings + ## 1.2.39 Minimum Komga version required: `0.151.0` diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index 35d79ac97..235a536a0 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Komga' pkgNameSuffix = 'all.komga' extClass = '.KomgaFactory' - extVersionCode = 39 + extVersionCode = 40 } dependencies { diff --git a/src/all/lanraragi/CHANGELOG.md b/src/all/lanraragi/CHANGELOG.md index 6f1c1564a..7ad73f4d5 100644 --- a/src/all/lanraragi/CHANGELOG.md +++ b/src/all/lanraragi/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.3.12 +Minimum LANraragi version required: 0.8.2 + +### Features + +* Exclude from bulk update warnings + ## 1.2.9 Minimum LANraragi version required: 0.8.2 diff --git a/src/all/lanraragi/build.gradle b/src/all/lanraragi/build.gradle index 95f550caf..c23bf27bd 100644 --- a/src/all/lanraragi/build.gradle +++ b/src/all/lanraragi/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'LANraragi' pkgNameSuffix = 'all.lanraragi' extClass = '.LANraragiFactory' - extVersionCode = 11 + extVersionCode = 12 } dependencies { diff --git a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt index 98e498fa2..3eeed94e5 100644 --- a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt +++ b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt @@ -9,6 +9,7 @@ import android.widget.Toast import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.source.ConfigurableSource +import eu.kanade.tachiyomi.source.UnmeteredSource import eu.kanade.tachiyomi.source.model.Filter import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.MangasPage @@ -35,7 +36,7 @@ import uy.kohesive.injekt.api.get import java.io.IOException import java.security.MessageDigest -open class LANraragi(private val suffix: String = "") : ConfigurableSource, HttpSource() { +open class LANraragi(private val suffix: String = "") : ConfigurableSource, UnmeteredSource, HttpSource() { override val baseUrl by lazy { getPrefBaseUrl() } override val lang = "all" diff --git a/src/all/mango/CHANGELOG.md b/src/all/mango/CHANGELOG.md index c6987889b..ed40cb092 100644 --- a/src/all/mango/CHANGELOG.md +++ b/src/all/mango/CHANGELOG.md @@ -1,6 +1,10 @@ +## 1.3.9 +### Features -## 1.0.0 +* Exclude from bulk update warnings + +## 1.2.1 ### Features diff --git a/src/all/mango/build.gradle b/src/all/mango/build.gradle index d6405f017..ae46bad3d 100644 --- a/src/all/mango/build.gradle +++ b/src/all/mango/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Mango' pkgNameSuffix = 'all.mango' extClass = '.Mango' - extVersionCode = 8 + extVersionCode = 9 } dependencies { diff --git a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt index 8c1d30508..a5b3ac1ea 100644 --- a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt +++ b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt @@ -9,6 +9,7 @@ import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.source.ConfigurableSource +import eu.kanade.tachiyomi.source.UnmeteredSource import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.source.model.Page @@ -38,7 +39,7 @@ import uy.kohesive.injekt.api.get import uy.kohesive.injekt.injectLazy import java.io.IOException -class Mango : ConfigurableSource, HttpSource() { +class Mango : ConfigurableSource, UnmeteredSource, HttpSource() { override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/api/library?depth=0", headersBuilder().build()) diff --git a/src/all/tachidesk/build.gradle b/src/all/tachidesk/build.gradle index 60f1cc823..1fa31c597 100644 --- a/src/all/tachidesk/build.gradle +++ b/src/all/tachidesk/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Tachidesk' pkgNameSuffix = 'all.tachidesk' extClass = '.Tachidesk' - extVersionCode = 4 + extVersionCode = 5 isNsfw = true } diff --git a/src/all/tachidesk/src/eu/kanade/tachiyomi/extension/all/tachidesk/Tachidesk.kt b/src/all/tachidesk/src/eu/kanade/tachiyomi/extension/all/tachidesk/Tachidesk.kt index 3f5f14690..db912c32b 100644 --- a/src/all/tachidesk/src/eu/kanade/tachiyomi/extension/all/tachidesk/Tachidesk.kt +++ b/src/all/tachidesk/src/eu/kanade/tachiyomi/extension/all/tachidesk/Tachidesk.kt @@ -10,6 +10,7 @@ import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.source.ConfigurableSource +import eu.kanade.tachiyomi.source.UnmeteredSource import eu.kanade.tachiyomi.source.model.Filter import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.MangasPage @@ -31,7 +32,7 @@ import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get import uy.kohesive.injekt.injectLazy -class Tachidesk : ConfigurableSource, HttpSource() { +class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() { override val name = "Tachidesk" override val baseUrl by lazy { getPrefBaseUrl() } private val baseLogin by lazy { getPrefBaseLogin() }