Manhwa Freak: remove spinner image (#1343)

This commit is contained in:
Vetle Ledaal 2024-02-18 10:53:09 +00:00 committed by Draff
parent 9ab07589ad
commit 2de6f14215
2 changed files with 11 additions and 1 deletions

View File

@ -3,7 +3,8 @@ ext {
extClass = '.ManhwaFreak' extClass = '.ManhwaFreak'
themePkg = 'mangathemesia' themePkg = 'mangathemesia'
baseUrl = 'https://manhwa-freak.com' baseUrl = 'https://manhwa-freak.com'
overrideVersionCode = 3 overrideVersionCode = 4
isNsfw = false
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -3,9 +3,11 @@ package eu.kanade.tachiyomi.extension.en.manhwafreak
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Request import okhttp3.Request
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.util.Calendar import java.util.Calendar
@ -57,6 +59,13 @@ class ManhwaFreak : MangaThemesia("Manhwa Freak", "https://manhwa-freak.com", "e
date_upload = getChapterDate(chapterElements.first()) date_upload = getChapterDate(chapterElements.first())
} }
override fun pageListParse(document: Document): List<Page> {
// Example: /wp-content/plugins/page-views-count/ajax-loader-2x.gif
return super.pageListParse(document).filterNot {
it.imageUrl?.startsWith("$baseUrl/wp-content/plugins/") == true
}
}
override fun getFilterList() = FilterList() override fun getFilterList() = FilterList()
private fun getChapterDate(element: Element?): Long { private fun getChapterDate(element: Element?): Long {