MadTheme: Fix cover (#11645)

* MadTheme: Fix cover

* Remove dead sources

* Revert "Remove dead sources"

This reverts commit aa04da638a93e40e1c28eaa2d8f4fcbf2e5681d9.
This commit is contained in:
Cuong-Tran 2025-11-15 01:03:09 +07:00 committed by Draff
parent 1a0a2fa4bf
commit 4dd6a75e10
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 19
baseVersionCode = 20

View File

@ -141,7 +141,7 @@ abstract class MadTheme(
title = element.selectFirst("a")!!.attr("title")
element.selectFirst(".summary")?.text()?.let { description = it }
element.select(".genres > *").joinToString { it.text() }.takeIf { it.isNotEmpty() }?.let { genre = it }
thumbnail_url = element.selectFirst("img")!!.attr("abs:data-src")
thumbnail_url = element.selectFirst("img")!!.attr("abs:data-src") + "#image-request"
}
/*
@ -155,7 +155,7 @@ abstract class MadTheme(
title = document.selectFirst(".detail h1")!!.text()
author = document.select(".detail .meta > p > strong:contains(Authors) ~ a").joinToString { it.text().trim(',', ' ') }
genre = document.select(".detail .meta > p > strong:contains(Genres) ~ a").joinToString { it.text().trim(',', ' ') }
thumbnail_url = document.selectFirst("#cover img")!!.attr("abs:data-src")
thumbnail_url = document.selectFirst("#cover img")!!.attr("abs:data-src") + "#image-request"
val altNames = document.selectFirst(".detail h2")?.text()
?.split(',', ';')