Fix variable shadowing (regression of #218)
This commit is contained in:
1 parent
95679f3fb9
commit
fb36346f0b
1 file changed
+2
-2
@@ -621,7 +621,7 @@ class SpiderQueen private constructor(val galleryInfo: GalleryInfo) : CoroutineS
|
||||
var forceHtml = false
|
||||
val original = Settings.downloadOriginImage || orgImg
|
||||
runCatching {
|
||||
repeat(2) { index ->
|
||||
repeat(2) { retries ->
|
||||
var imageUrl: String? = null
|
||||
var localShowKey: String?
|
||||
|
||||
@@ -669,7 +669,7 @@ class SpiderQueen private constructor(val galleryInfo: GalleryInfo) : CoroutineS
|
||||
val referer: String?
|
||||
|
||||
if (original && originImageUrl != null) {
|
||||
if (index == 1 && skipHathKey != null) {
|
||||
if (retries == 1 && skipHathKey != null) {
|
||||
originImageUrl += "?nl=$skipHathKey"
|
||||
}
|
||||
val pageUrl = EhUrl.getPageUrl(mSpiderInfo.gid, index, pToken)
|
||||
|
||||
Reference in new issue
Block a user