diff --git a/lib-multisrc/keyoapp/build.gradle.kts b/lib-multisrc/keyoapp/build.gradle.kts index 1c041fa3e..0ce8d2e28 100644 --- a/lib-multisrc/keyoapp/build.gradle.kts +++ b/lib-multisrc/keyoapp/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 9 +baseVersionCode = 10 dependencies { api(project(":lib:i18n")) diff --git a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt index 421674653..587bb99bb 100644 --- a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt +++ b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt @@ -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 @@ -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() + } } } diff --git a/src/en/aniglisnovels/build.gradle b/src/en/aniglisnovels/build.gradle new file mode 100644 index 000000000..f82c4b6a1 --- /dev/null +++ b/src/en/aniglisnovels/build.gradle @@ -0,0 +1,9 @@ +ext { + extName = 'Aniglis Novels' + extClass = '.AniglisNovels' + themePkg = 'keyoapp' + baseUrl = 'https://agsnovels.com' + overrideVersionCode = 0 +} + +apply from: "$rootDir/common.gradle" diff --git a/src/en/aniglisnovels/res/mipmap-hdpi/ic_launcher.png b/src/en/aniglisnovels/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..11063db5b Binary files /dev/null and b/src/en/aniglisnovels/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/en/aniglisnovels/res/mipmap-mdpi/ic_launcher.png b/src/en/aniglisnovels/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..9c1b5bca9 Binary files /dev/null and b/src/en/aniglisnovels/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/en/aniglisnovels/res/mipmap-xhdpi/ic_launcher.png b/src/en/aniglisnovels/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..d80dbddd8 Binary files /dev/null and b/src/en/aniglisnovels/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/en/aniglisnovels/res/mipmap-xxhdpi/ic_launcher.png b/src/en/aniglisnovels/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..d3d768561 Binary files /dev/null and b/src/en/aniglisnovels/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/en/aniglisnovels/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/aniglisnovels/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..308eff1fc Binary files /dev/null and b/src/en/aniglisnovels/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/en/aniglisnovels/src/eu/kanade/tachiyomi/extension/en/aniglisnovels/AniglisNovels.kt b/src/en/aniglisnovels/src/eu/kanade/tachiyomi/extension/en/aniglisnovels/AniglisNovels.kt new file mode 100644 index 000000000..90eb9eb08 --- /dev/null +++ b/src/en/aniglisnovels/src/eu/kanade/tachiyomi/extension/en/aniglisnovels/AniglisNovels.kt @@ -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", +)