From 6acac9416ce26037b61a2d14e21f92147323567f Mon Sep 17 00:00:00 2001 From: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:39:49 +0500 Subject: [PATCH] RC: fix referer (#653) fix referer --- src/en/rizzcomic/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/en/rizzcomic/build.gradle b/src/en/rizzcomic/build.gradle index 4487521a5..d20b75843 100644 --- a/src/en/rizzcomic/build.gradle +++ b/src/en/rizzcomic/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Rizz Comic' extClass = '.RizzComic' - extVersionCode = 2 + extVersionCode = 3 } apply from: "$rootDir/common.gradle" diff --git a/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt b/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt index 0d8313036..bf0db20c9 100644 --- a/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt +++ b/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt @@ -101,7 +101,7 @@ class RizzComic : HttpSource(), ConfigurableSource { updateCache() } - return urlPrefix!! + return urlPrefix ?: throw Exception("Unable to update dynamic urls") } override fun popularMangaRequest(page: Int) = searchMangaRequest(page, "", SortFilter.POPULAR) @@ -267,7 +267,6 @@ class RizzComic : HttpSource(), ConfigurableSource { override fun imageRequest(page: Page): Request { val newHeaders = headersBuilder() .set("Accept", "image/avif,image/webp,image/png,image/jpeg,*/*") - .set("Referer", page.url) .build() return GET(page.imageUrl!!, newHeaders)