Skip to content

Commit

Permalink
Add AniglisNovels and fix Keyoapp thumbnail quality (#6939)
Browse files Browse the repository at this point in the history
Add AniglisNovels
  • Loading branch information
choppeh authored Jan 3, 2025
1 parent 1605a51 commit f6f1705
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib-multisrc/keyoapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id("lib-multisrc")
}

baseVersionCode = 9
baseVersionCode = 10

dependencies {
api(project(":lib:i18n"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import eu.kanade.tachiyomi.util.asJsoup
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
Expand Down Expand Up @@ -308,6 +309,12 @@ abstract class Keyoapp(
protected open fun Element.getImageUrl(selector: String): String? {
return this.selectFirst(selector)?.let { element ->
IMG_REGEX.find(element.attr("style"))?.groups?.get("url")?.value
?.toHttpUrlOrNull()?.let {
it.newBuilder()
.setQueryParameter("w", "480") // Keyoapp returns the dynamic size of the thumbnail to any size
.build()
.toString()
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions src/en/aniglisnovels/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ext {
extName = 'Aniglis Novels'
extClass = '.AniglisNovels'
themePkg = 'keyoapp'
baseUrl = 'https://agsnovels.com'
overrideVersionCode = 0
}

apply from: "$rootDir/common.gradle"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package eu.kanade.tachiyomi.extension.en.aniglisnovels

import eu.kanade.tachiyomi.multisrc.keyoapp.Keyoapp

class AniglisNovels : Keyoapp(
"Aniglis Novels",
"https://agsnovels.com",
"en",
)

0 comments on commit f6f1705

Please sign in to comment.