fix(RokariComics): ignore locked chapters in chapterListSelector (#10019)
* fix: ignore locked in chapter list selector * add background color to icons * simplify filter list
@ -3,7 +3,7 @@ ext {
|
|||||||
extClass = '.RokariComics'
|
extClass = '.RokariComics'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://rokaricomics.com'
|
baseUrl = 'https://rokaricomics.com'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 1
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 30 KiB |
@ -1,7 +1,6 @@
|
|||||||
package eu.kanade.tachiyomi.extension.en.rokaricomics
|
package eu.kanade.tachiyomi.extension.en.rokaricomics
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
import eu.kanade.tachiyomi.source.model.Filter
|
|
||||||
import eu.kanade.tachiyomi.source.model.FilterList
|
import eu.kanade.tachiyomi.source.model.FilterList
|
||||||
|
|
||||||
class RokariComics : MangaThemesia(
|
class RokariComics : MangaThemesia(
|
||||||
@ -9,24 +8,10 @@ class RokariComics : MangaThemesia(
|
|||||||
"https://rokaricomics.com",
|
"https://rokaricomics.com",
|
||||||
"en",
|
"en",
|
||||||
) {
|
) {
|
||||||
|
override fun chapterListSelector() = "#chapterlist li:has(div.chbox):has(div.eph-num):has(a[href])"
|
||||||
|
|
||||||
override fun getFilterList(): FilterList {
|
override fun getFilterList(): FilterList {
|
||||||
val filters = mutableListOf<Filter<*>>(
|
val filters = super.getFilterList().filterNot { it is AuthorFilter || it is YearFilter }
|
||||||
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"]),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return FilterList(filters)
|
return FilterList(filters)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|