HentaiRead: Fix url selector (#5601)

fix url selector
This commit is contained in:
bapeey 2024-10-20 07:29:28 -05:00 committed by Draff
parent 2f02d090b8
commit ec2dcf0e7b
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Hentairead' extClass = '.Hentairead'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://hentairead.com' baseUrl = 'https://hentairead.com'
overrideVersionCode = 7 overrideVersionCode = 8
isNsfw = true isNsfw = true
} }

View File

@ -94,7 +94,7 @@ class Hentairead : Madara("HentaiRead", "https://hentairead.com", "en", dateForm
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/$mangaSubString/${searchPage(page)}?sortby=views", headers) override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/$mangaSubString/${searchPage(page)}?sortby=views", headers)
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/$mangaSubString/${searchPage(page)}?sortby=new", headers) override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/$mangaSubString/${searchPage(page)}?sortby=new", headers)
override fun popularMangaSelector() = ".manga-item" override fun popularMangaSelector() = ".manga-item"
override val popularMangaUrlSelector = ".manga-item__bottom a" override val popularMangaUrlSelector = "a.manga-item__link"
private fun getTagId(tag: String, type: String): Int? { private fun getTagId(tag: String, type: String): Int? {
val ajax = "$baseUrl/wp-admin/admin-ajax.php?action=search_manga_terms&search=$tag&taxonomy=$type".replace("artist", "manga_artist") val ajax = "$baseUrl/wp-admin/admin-ajax.php?action=search_manga_terms&search=$tag&taxonomy=$type".replace("artist", "manga_artist")