From 32a34ab1a3a3ab467344a5cffdaefbe480b7aeec Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Sat, 16 Sep 2023 15:39:01 +0000 Subject: [PATCH] Tapas: set User-Agent properly (#17972) --- src/en/tapastic/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/en/tapastic/build.gradle b/src/en/tapastic/build.gradle index f2a387f54..20f8c3692 100644 --- a/src/en/tapastic/build.gradle +++ b/src/en/tapastic/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Tapas' pkgNameSuffix = 'en.tapastic' extClass = '.Tapastic' - extVersionCode = 19 + extVersionCode = 20 isNsfw = true } diff --git a/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt b/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt index fc0d82612..dcf39e856 100644 --- a/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt +++ b/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt @@ -155,7 +155,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() { // Popular override fun popularMangaRequest(page: Int): Request = - GET("$baseUrl/comics?b=POPULAR&g=0&f=NONE&pageNumber=$page&pageSize=20&") + GET("$baseUrl/comics?b=POPULAR&g=0&f=NONE&pageNumber=$page&pageSize=20&", headers) override fun popularMangaNextPageSelector() = "div[data-has-next=true]" override fun popularMangaSelector() = "li.js-list-item" @@ -199,7 +199,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() { // Latest override fun latestUpdatesRequest(page: Int): Request = - GET("$baseUrl/comics?b=FRESH&g=0&f=NONE&pageNumber=$page&pageSize=20&") + GET("$baseUrl/comics?b=FRESH&g=0&f=NONE&pageNumber=$page&pageSize=20&", headers) override fun latestUpdatesNextPageSelector(): String = popularMangaNextPageSelector() override fun latestUpdatesSelector(): String = popularMangaSelector() @@ -244,7 +244,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() { } // Append page number url.addQueryParameter("pageNumber", page.toString()) - return GET(url.toString()) + return GET(url.toString(), headers) } override fun searchMangaNextPageSelector() =