MyReadingManga: Fix locale query + tags in getDetails

master
dragonx943 7 months ago
parent d85bb64b1c
commit be64bf2328
No known key found for this signature in database
GPG Key ID: 48DD99A2C5421C1C

@ -49,7 +49,6 @@ internal class MyReadingManga(context: MangaLoaderContext) :
isSearchSupported = true, isSearchSupported = true,
isSearchWithFiltersSupported = true, isSearchWithFiltersSupported = true,
isMultipleTagsSupported = true, isMultipleTagsSupported = true,
isOriginalLocaleSupported = true,
) )
override val availableSortOrders: Set<SortOrder> = EnumSet.of( override val availableSortOrders: Set<SortOrder> = EnumSet.of(
@ -276,10 +275,10 @@ internal class MyReadingManga(context: MangaLoaderContext) :
val genres = mutableSetOf<MangaTag>() val genres = mutableSetOf<MangaTag>()
doc.select("span.entry-terms:has(span:contains(Genres)) a").forEach { doc.select("span.entry-terms:has(span:contains(Genre:)) a").forEach {
genres.add( genres.add(
MangaTag( MangaTag(
title = it.text(), title = it.text().removeSuffix(",").trim(),
key = it.attr("href").substringAfterLast("/genre/").substringBefore("/"), key = it.attr("href").substringAfterLast("/genre/").substringBefore("/"),
source = source, source = source,
), ),

Loading…
Cancel
Save