diff --git a/src/en/birdmanga/build.gradle b/src/en/birdmanga/build.gradle deleted file mode 100644 index ab9f87b49..000000000 --- a/src/en/birdmanga/build.gradle +++ /dev/null @@ -1,9 +0,0 @@ -ext { - extName = 'BirdManga' - extClass = '.BirdManga' - themePkg = 'mangathemesia' - baseUrl = 'https://birdmanga.com' - overrideVersionCode = 0 -} - -apply from: "$rootDir/common.gradle" diff --git a/src/en/birdmanga/res/mipmap-hdpi/ic_launcher.png b/src/en/birdmanga/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index 72713de03..000000000 Binary files a/src/en/birdmanga/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/src/en/birdmanga/res/mipmap-mdpi/ic_launcher.png b/src/en/birdmanga/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 10f1b35e4..000000000 Binary files a/src/en/birdmanga/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/src/en/birdmanga/res/mipmap-xhdpi/ic_launcher.png b/src/en/birdmanga/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index d2098df6e..000000000 Binary files a/src/en/birdmanga/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/src/en/birdmanga/res/mipmap-xxhdpi/ic_launcher.png b/src/en/birdmanga/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index b96521e53..000000000 Binary files a/src/en/birdmanga/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/en/birdmanga/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/birdmanga/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 99cf8c1b7..000000000 Binary files a/src/en/birdmanga/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/en/birdmanga/src/eu/kanade/tachiyomi/extension/en/birdmanga/BirdManga.kt b/src/en/birdmanga/src/eu/kanade/tachiyomi/extension/en/birdmanga/BirdManga.kt deleted file mode 100644 index 63a332f16..000000000 --- a/src/en/birdmanga/src/eu/kanade/tachiyomi/extension/en/birdmanga/BirdManga.kt +++ /dev/null @@ -1,58 +0,0 @@ -package eu.kanade.tachiyomi.extension.en.birdmanga - -import android.util.Base64 -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia -import eu.kanade.tachiyomi.network.interceptor.rateLimit -import eu.kanade.tachiyomi.source.model.FilterList -import eu.kanade.tachiyomi.source.model.Page -import kotlinx.serialization.json.jsonArray -import kotlinx.serialization.json.jsonPrimitive -import okhttp3.OkHttpClient -import okhttp3.Request -import org.jsoup.nodes.Document -import java.lang.IllegalArgumentException - -class BirdManga : MangaThemesia( - "BirdManga", - "https://birdmanga.com", - "en", -) { - override val client: OkHttpClient = network.cloudflareClient.newBuilder() - .rateLimit(1) - .build() - - // Search - - override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - val request = super.searchMangaRequest(page, query, filters) - val url = request.url.newBuilder().apply { - removeAllQueryParameters("title") - if (query.isNotBlank()) { - removePathSegment(0) - addQueryParameter("s", query) - } - }.build() - - return request.newBuilder().url(url).build() - } - - // Images - - override fun pageListParse(document: Document): List { - val imagesData = document.select("script[src*=base64]").firstNotNullOfOrNull { - val data = String(Base64.decode(it.attr("src").substringAfter("base64,"), Base64.DEFAULT)) - JSON_IMAGE_LIST_REGEX.find(data)?.destructured?.toList()?.get(0) - } ?: return super.pageListParse(document) - - val imageList = try { - json.parseToJsonElement(imagesData).jsonArray - } catch (_: IllegalArgumentException) { - emptyList() - } - - val chapterUrl = document.location() - return imageList.mapIndexed { i, jsonEl -> - Page(i, chapterUrl, jsonEl.jsonPrimitive.content) - } - } -}