fix(RokariComics): ignore locked chapters in chapterListSelector (#10019)

* fix: ignore locked in chapter list selector

* add background color to icons

* simplify filter list
This commit is contained in:
David Brochero 2025-08-07 13:47:44 -03:00 committed by Draff
parent e05b6448bb
commit 7b8e6298a7
Signed by: Draff
GPG Key ID: E8A89F3211677653
7 changed files with 4 additions and 19 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.RokariComics'
themePkg = 'mangathemesia'
baseUrl = 'https://rokaricomics.com'
overrideVersionCode = 0
overrideVersionCode = 1
isNsfw = false
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1,7 +1,6 @@
package eu.kanade.tachiyomi.extension.en.rokaricomics
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
class RokariComics : MangaThemesia(
@ -9,24 +8,10 @@ class RokariComics : MangaThemesia(
"https://rokaricomics.com",
"en",
) {
override fun chapterListSelector() = "#chapterlist li:has(div.chbox):has(div.eph-num):has(a[href])"
override fun getFilterList(): FilterList {
val filters = mutableListOf<Filter<*>>(
StatusFilter(intl["status_filter_title"], statusOptions),
TypeFilter(intl["type_filter_title"], typeFilterOptions),
OrderByFilter(intl["order_by_filter_title"], orderByFilterOptions),
)
if (!genrelist.isNullOrEmpty()) {
filters.addAll(
listOf(
Filter.Header(intl["genre_exclusion_warning"]),
GenreListFilter(intl["genre_filter_title"], getGenreList()),
),
)
} else {
filters.add(
Filter.Header(intl["genre_missing_warning"]),
)
}
val filters = super.getFilterList().filterNot { it is AuthorFilter || it is YearFilter }
return FilterList(filters)
}
}