Mark self-hosted sources as unmetered (#12077)

This commit is contained in:
arkon 2022-06-05 11:49:11 -04:00 committed by GitHub
parent 2714b3126c
commit a8cb5c2794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 39 additions and 10 deletions

View File

@ -1,3 +1,9 @@
## 1.3.4
### Features
* Exclude from bulk update warnings
## 1.2.3 ## 1.2.3
### Fix ### Fix

View File

@ -6,7 +6,7 @@ ext {
extName = 'Kavita' extName = 'Kavita'
pkgNameSuffix = 'all.kavita' pkgNameSuffix = 'all.kavita'
extClass = '.KavitaFactory' extClass = '.KavitaFactory'
extVersionCode = 3 extVersionCode = 4
} }
dependencies { dependencies {

View File

@ -31,6 +31,7 @@ import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.source.ConfigurableSource 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.Filter
import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.source.model.MangasPage
@ -63,7 +64,7 @@ import java.io.IOException
import java.net.ConnectException import java.net.ConnectException
import java.security.MessageDigest import java.security.MessageDigest
class Kavita(private val suffix: String = "") : ConfigurableSource, HttpSource() { class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSource, HttpSource() {
class CompareChapters { class CompareChapters {
companion object : Comparator<SChapter> { companion object : Comparator<SChapter> {
override fun compare(a: SChapter, b: SChapter): Int { override fun compare(a: SChapter, b: SChapter): Int {

View File

@ -1,3 +1,11 @@
## 1.3.40
Minimum Komga version required: `0.151.0`
### Features
* Exclude from bulk update warnings
## 1.2.39 ## 1.2.39
Minimum Komga version required: `0.151.0` Minimum Komga version required: `0.151.0`

View File

@ -6,7 +6,7 @@ ext {
extName = 'Komga' extName = 'Komga'
pkgNameSuffix = 'all.komga' pkgNameSuffix = 'all.komga'
extClass = '.KomgaFactory' extClass = '.KomgaFactory'
extVersionCode = 39 extVersionCode = 40
} }
dependencies { dependencies {

View File

@ -1,3 +1,10 @@
## 1.3.12
Minimum LANraragi version required: 0.8.2
### Features
* Exclude from bulk update warnings
## 1.2.9 ## 1.2.9
Minimum LANraragi version required: 0.8.2 Minimum LANraragi version required: 0.8.2

View File

@ -6,7 +6,7 @@ ext {
extName = 'LANraragi' extName = 'LANraragi'
pkgNameSuffix = 'all.lanraragi' pkgNameSuffix = 'all.lanraragi'
extClass = '.LANraragiFactory' extClass = '.LANraragiFactory'
extVersionCode = 11 extVersionCode = 12
} }
dependencies { dependencies {

View File

@ -9,6 +9,7 @@ import android.widget.Toast
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.source.ConfigurableSource 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.Filter
import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.source.model.MangasPage
@ -35,7 +36,7 @@ import uy.kohesive.injekt.api.get
import java.io.IOException import java.io.IOException
import java.security.MessageDigest 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 baseUrl by lazy { getPrefBaseUrl() }
override val lang = "all" override val lang = "all"

View File

@ -1,6 +1,10 @@
## 1.3.9
### Features
## 1.0.0 * Exclude from bulk update warnings
## 1.2.1
### Features ### Features

View File

@ -6,7 +6,7 @@ ext {
extName = 'Mango' extName = 'Mango'
pkgNameSuffix = 'all.mango' pkgNameSuffix = 'all.mango'
extClass = '.Mango' extClass = '.Mango'
extVersionCode = 8 extVersionCode = 9
} }
dependencies { dependencies {

View File

@ -9,6 +9,7 @@ import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.source.ConfigurableSource 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.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page import eu.kanade.tachiyomi.source.model.Page
@ -38,7 +39,7 @@ import uy.kohesive.injekt.api.get
import uy.kohesive.injekt.injectLazy import uy.kohesive.injekt.injectLazy
import java.io.IOException import java.io.IOException
class Mango : ConfigurableSource, HttpSource() { class Mango : ConfigurableSource, UnmeteredSource, HttpSource() {
override fun popularMangaRequest(page: Int): Request = override fun popularMangaRequest(page: Int): Request =
GET("$baseUrl/api/library?depth=0", headersBuilder().build()) GET("$baseUrl/api/library?depth=0", headersBuilder().build())

View File

@ -6,7 +6,7 @@ ext {
extName = 'Tachidesk' extName = 'Tachidesk'
pkgNameSuffix = 'all.tachidesk' pkgNameSuffix = 'all.tachidesk'
extClass = '.Tachidesk' extClass = '.Tachidesk'
extVersionCode = 4 extVersionCode = 5
isNsfw = true isNsfw = true
} }

View File

@ -10,6 +10,7 @@ import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.source.ConfigurableSource 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.Filter
import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage 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.api.get
import uy.kohesive.injekt.injectLazy import uy.kohesive.injekt.injectLazy
class Tachidesk : ConfigurableSource, HttpSource() { class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
override val name = "Tachidesk" override val name = "Tachidesk"
override val baseUrl by lazy { getPrefBaseUrl() } override val baseUrl by lazy { getPrefBaseUrl() }
private val baseLogin by lazy { getPrefBaseLogin() } private val baseLogin by lazy { getPrefBaseLogin() }