Migrate from fakeimg.pl to fakeimg.ryd.tools (#9020)
This commit is contained in:
parent
866eeef617
commit
ee40d4e9e4
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'xkcd'
|
extName = 'xkcd'
|
||||||
extClass = '.XkcdFactory'
|
extClass = '.XkcdFactory'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -137,10 +137,10 @@ open class Xkcd(
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val THUMBNAIL_URL =
|
private const val THUMBNAIL_URL =
|
||||||
"https://fakeimg.pl/550x780/ffffff/6e7b91/?font=museo&text=xkcd"
|
"https://fakeimg.ryd.tools/550x780/ffffff/6e7b91/?font=museo&text=xkcd"
|
||||||
|
|
||||||
const val LATIN_ALT_TEXT_URL =
|
const val LATIN_ALT_TEXT_URL =
|
||||||
"https://fakeimg.pl/1500x2126/ffffff/000000/?font=museo&font_size=42"
|
"https://fakeimg.ryd.tools/1500x2126/ffffff/000000/?font=museo&font_size=42"
|
||||||
|
|
||||||
const val CJK_ALT_TEXT_URL =
|
const val CJK_ALT_TEXT_URL =
|
||||||
"https://placehold.jp/42/ffffff/000000/1500x2126.png?css=" +
|
"https://placehold.jp/42/ffffff/000000/1500x2126.png?css=" +
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'buttsmithy'
|
extName = 'buttsmithy'
|
||||||
extClass = '.Buttsmithy'
|
extClass = '.Buttsmithy'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ class Buttsmithy : HttpSource() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun generateImageUrlWithText(text: String): String {
|
private fun generateImageUrlWithText(text: String): String {
|
||||||
return "https://fakeimg.pl/800x1236/?text=$text&font=lobster"
|
return "https://fakeimg.ryd.tools/800x1236/?text=$text&font=lobster"
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun generateMangasPage(): MangasPage {
|
private fun generateMangasPage(): MangasPage {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Hiveworks Comics'
|
extName = 'Hiveworks Comics'
|
||||||
extClass = '.Hiveworks'
|
extClass = '.Hiveworks'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -506,7 +506,7 @@ class Hiveworks : ParsedHttpSource() {
|
|||||||
charCount += i.length + 1
|
charCount += i.length + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
return "https://fakeimg.pl/1500x2126/ffffff/000000/?text=$builder&font_size=42&font=museo"
|
return "https://fakeimg.ryd.tools/1500x2126/ffffff/000000/?text=$builder&font_size=42&font=museo"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used to throw custom error codes for http codes
|
// Used to throw custom error codes for http codes
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Latis Books'
|
extName = 'Latis Books'
|
||||||
extClass = '.Latisbooks'
|
extClass = '.Latisbooks'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class Latisbooks : HttpSource() {
|
|||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient
|
override val client: OkHttpClient = network.cloudflareClient
|
||||||
|
|
||||||
private val textToImageURL = "https://fakeimg.pl/1500x2126/ffffff/000000/?font=museo&font_size=42"
|
private val textToImageURL = "https://fakeimg.ryd.tools/1500x2126/ffffff/000000/?font=museo&font_size=42"
|
||||||
|
|
||||||
private fun String.image() = textToImageURL + "&text=" + encode(this)
|
private fun String.image() = textToImageURL + "&text=" + encode(this)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Swords Comic'
|
extName = 'Swords Comic'
|
||||||
extClass = '.SwordsComic'
|
extClass = '.SwordsComic'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -106,7 +106,7 @@ class SwordsComic : HttpSource() {
|
|||||||
builder.append("+")
|
builder.append("+")
|
||||||
}
|
}
|
||||||
|
|
||||||
return listOf(Page(0, "", imageElement.attr("abs:src")), Page(1, "", "https://fakeimg.pl/1800x2252/978B65/000000/?text=$builder&font_size=60&font=comic+sans"))
|
return listOf(Page(0, "", imageElement.attr("abs:src")), Page(1, "", "https://fakeimg.ryd.tools/1800x2252/978B65/000000/?text=$builder&font_size=60&font=comic+sans"))
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
|
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user