Readerfront: remove extra slash (#9818)
This commit is contained in:
parent
0881549176
commit
a21da0ff59
|
@ -7,7 +7,7 @@ class RavensScansFactory : SourceFactory {
|
||||||
override fun createSources() = listOf(RavensScans("es"), RavensScans("en"))
|
override fun createSources() = listOf(RavensScans("es"), RavensScans("en"))
|
||||||
|
|
||||||
class RavensScans(lang: String) :
|
class RavensScans(lang: String) :
|
||||||
ReaderFront("Ravens Scans", "https://ravens-scans.com/", lang) {
|
ReaderFront("Ravens Scans", "https://ravens-scans.com", lang) {
|
||||||
override fun getImageCDN(path: String, width: Int) =
|
override fun getImageCDN(path: String, width: Int) =
|
||||||
"https://i${(0..2).random()}.wp.com/img-cdn1.ravens-scans.com" +
|
"https://i${(0..2).random()}.wp.com/img-cdn1.ravens-scans.com" +
|
||||||
"$path?strip=all&quality=100&w=$width"
|
"$path?strip=all&quality=100&w=$width"
|
||||||
|
|
|
@ -2,7 +2,7 @@ package eu.kanade.tachiyomi.extension.en.scyllascans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.readerfront.ReaderFront
|
import eu.kanade.tachiyomi.multisrc.readerfront.ReaderFront
|
||||||
|
|
||||||
class ScyllaScans : ReaderFront("Scylla Scans", "https://scyllascans.org/", "en") {
|
class ScyllaScans : ReaderFront("Scylla Scans", "https://scyllascans.org", "en") {
|
||||||
override fun getImageCDN(path: String, width: Int) =
|
override fun getImageCDN(path: String, width: Int) =
|
||||||
"https://i${(0..2).random()}.wp.com/api.scyllascans.org" +
|
"https://i${(0..2).random()}.wp.com/api.scyllascans.org" +
|
||||||
"$path?strip=all&quality=100&w=$width"
|
"$path?strip=all&quality=100&w=$width"
|
||||||
|
|
|
@ -9,11 +9,11 @@ class ReaderFrontGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "ReaderFront"
|
override val themeClass = "ReaderFront"
|
||||||
|
|
||||||
override val baseVersionCode = 2
|
override val baseVersionCode = 3
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Ravens Scans", "https://ravens-scans.com/", listOf("es", "en"), true),
|
MultiLang("Ravens Scans", "https://ravens-scans.com", listOf("es", "en"), true),
|
||||||
SingleLang("Scylla Scans", "https://scyllascans.org/", "en"),
|
SingleLang("Scylla Scans", "https://scyllascans.org", "en"),
|
||||||
)
|
)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in New Issue