Migrate from fakeimg.pl to fakeimg.ryd.tools (#9020)

This commit is contained in:
Radon Rosborough 2025-05-29 18:46:34 -07:00 committed by Draff
parent 866eeef617
commit ee40d4e9e4
Signed by: Draff
GPG Key ID: E8A89F3211677653
10 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'xkcd'
extClass = '.XkcdFactory'
extVersionCode = 13
extVersionCode = 14
}
apply from: "$rootDir/common.gradle"

View File

@ -137,10 +137,10 @@ open class Xkcd(
companion object {
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 =
"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 =
"https://placehold.jp/42/ffffff/000000/1500x2126.png?css=" +

View File

@ -1,7 +1,7 @@
ext {
extName = 'buttsmithy'
extClass = '.Buttsmithy'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -255,7 +255,7 @@ class Buttsmithy : HttpSource() {
}
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 {

View File

@ -1,7 +1,7 @@
ext {
extName = 'Hiveworks Comics'
extClass = '.Hiveworks'
extVersionCode = 8
extVersionCode = 9
}
apply from: "$rootDir/common.gradle"

View File

@ -506,7 +506,7 @@ class Hiveworks : ParsedHttpSource() {
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

View File

@ -1,7 +1,7 @@
ext {
extName = 'Latis Books'
extClass = '.Latisbooks'
extVersionCode = 5
extVersionCode = 6
isNsfw = true
}

View File

@ -28,7 +28,7 @@ class Latisbooks : HttpSource() {
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)

View File

@ -1,7 +1,7 @@
ext {
extName = 'Swords Comic'
extClass = '.SwordsComic'
extVersionCode = 3
extVersionCode = 4
}
apply from: "$rootDir/common.gradle"

View File

@ -106,7 +106,7 @@ class SwordsComic : HttpSource() {
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()