Bato.to: add mirrors (#12470)

* Bato.to: add mirrors

* fix versioning
This commit is contained in:
Vetle Ledaal 2022-07-09 03:47:48 +00:00 committed by GitHub
parent 199a07bf53
commit 4e8f2af17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 8 deletions

View File

@ -16,16 +16,32 @@ package="eu.kanade.tachiyomi.extension">
<data android:host="*.bato.to" />
<data android:host="bato.to" />
<data android:host="*.batocc.com" />
<data android:host="batocc.com" />
<data android:host="*.batotoo.com" />
<data android:host="batotoo.com" />
<data android:host="*.comiko.net" />
<data android:host="comiko.net" />
<data android:host="*.batotwo.com" />
<data android:host="batotwo.com" />
<data android:host="*.battwo.com" />
<data android:host="battwo.com" />
<data android:host="*.comiko.net" />
<data android:host="comiko.net" />
<data android:host="*.mangatoto.com" />
<data android:host="mangatoto.com" />
<data android:host="*.mycdhands.com" />
<data android:host="mycdhands.com" />
<data android:host="*.mangatoto.net" />
<data android:host="mangatoto.net" />
<data android:host="*.mangatoto.org" />
<data android:host="mangatoto.org" />
<data android:host="*.mycordant.co.uk" />
<data android:host="mycordant.co.uk" />
<data android:host="*.dto.to" />
<data android:host="dto.to" />
<data android:host="*.hto.to" />
<data android:host="hto.to" />
<data android:host="*.mto.to" />
<data android:host="mto.to" />
<data android:host="*.wto.to" />
<data android:host="wto.to" />
<data
android:pathPattern="/series/..*"

View File

@ -1,10 +1,43 @@
## 1.2.25
## 1.3.28
### Features
* Add mirror `batocc.com`
* Add mirror `batotwo.com`
* Add mirror `mangatoto.net`
* Add mirror `mangatoto.org`
* Add mirror `mycordant.co.uk`
* Add mirror `dto.to`
* Add mirror `hto.to`
* Add mirror `mto.to`
* Add mirror `wto.to`
* Remove mirror `mycdhands.com`
## 1.3.27
### Features
* Change default popular sort by `Most Views Totally`
## 1.3.26
### Fix
* Update author and artist parsing
## 1.3.25
### Fix
* Status parsing
* Artist name parsing
## 1.3.24
### Fix
* Bump versions for individual extension with URL handler activities
## 1.2.23
### Fix

View File

@ -6,7 +6,7 @@ ext {
extName = 'Bato.to'
pkgNameSuffix = 'all.batoto'
extClass = '.BatoToFactory'
extVersionCode = 27
extVersionCode = 28
isNsfw = true
}

View File

@ -98,8 +98,38 @@ open class BatoTo(
companion object {
private const val MIRROR_PREF_KEY = "MIRROR"
private const val MIRROR_PREF_TITLE = "Mirror"
private val MIRROR_PREF_ENTRIES = arrayOf("Bato.to", "Batotoo.com", "Comiko.net", "Battwo.com", "Mangatoto.com", "Mycdhands.com")
private val MIRROR_PREF_ENTRY_VALUES = arrayOf("https://bato.to", "https://batotoo.com", "https://comiko.net", "https://battwo.com", "https://mangatoto.com", "https://mycdhands.com")
private val MIRROR_PREF_ENTRIES = arrayOf(
"bato.to",
"batocc.com",
"batotoo.com",
"batotwo.com",
"battwo.com",
"comiko.net",
"mangatoto.com",
"mangatoto.net",
"mangatoto.org",
"mycordant.co.uk",
"dto.to",
"hto.to",
"mto.to",
"wto.to"
)
private val MIRROR_PREF_ENTRY_VALUES = arrayOf(
"https://bato.to",
"https://batocc.com",
"https://batotoo.com",
"https://batotwo.com",
"https://battwo.com",
"https://comiko.net",
"https://mangatoto.com",
"https://mangatoto.net",
"https://mangatoto.org",
"https://mycordant.co.uk",
"https://dto.to",
"https://hto.to",
"https://mto.to",
"https://wto.to"
)
private val MIRROR_PREF_DEFAULT_VALUE = MIRROR_PREF_ENTRY_VALUES[0]
private const val ALT_CHAPTER_LIST_PREF_KEY = "ALT_CHAPTER_LIST"