diff --git a/vripper-core/src/main/kotlin/me/vripper/host/AcidimgHost.kt b/vripper-core/src/main/kotlin/me/vripper/host/AcidimgHost.kt index 6028c00..bf6952c 100644 --- a/vripper-core/src/main/kotlin/me/vripper/host/AcidimgHost.kt +++ b/vripper-core/src/main/kotlin/me/vripper/host/AcidimgHost.kt @@ -46,7 +46,7 @@ internal class AcidimgHost( ) it.setAbsoluteRequestUri(true) }.also { context.requests.add(it) } - log.info("Requesting {}", httpPost) + log.info("{}", httpPost) val doc = try { httpService.client.execute( httpPost, context.httpContext diff --git a/vripper-core/src/main/kotlin/me/vripper/host/Host.kt b/vripper-core/src/main/kotlin/me/vripper/host/Host.kt index 8d0178d..e0ab1e7 100644 --- a/vripper-core/src/main/kotlin/me/vripper/host/Host.kt +++ b/vripper-core/src/main/kotlin/me/vripper/host/Host.kt @@ -161,7 +161,7 @@ internal abstract class Host( it.setAbsoluteRequestUri(true) context.requests.add(it) } - log.info("Requesting {}", httpHead) + log.info("{}", httpHead) return httpService.client.execute( httpHead, context.httpContext @@ -184,7 +184,7 @@ internal abstract class Host( it.addHeader("Referer", context.imageEntity.url) it.setAbsoluteRequestUri(true) }.also { context.requests.add(it) } - log.info("Requesting {}", httpGet) + log.info("{}", httpGet) return httpService.client.execute(httpGet, context.httpContext) { if (it.code / 100 != 2) { throw DownloadException("Server returned code ${it.code}") diff --git a/vripper-core/src/main/kotlin/me/vripper/host/ImxHost.kt b/vripper-core/src/main/kotlin/me/vripper/host/ImxHost.kt index 4f9904a..1fe1501 100644 --- a/vripper-core/src/main/kotlin/me/vripper/host/ImxHost.kt +++ b/vripper-core/src/main/kotlin/me/vripper/host/ImxHost.kt @@ -56,7 +56,7 @@ internal class ImxHost : Host("imx.to", 8) { it.setAbsoluteRequestUri(true) context.requests.add(it) } - log.info("Requesting: {}", httpHead) + log.info("{}", httpHead) failFastHttpClient.execute(httpHead) { response -> if (response.code / 100 != 2) { throw HostException("Invalid response code ${response.code}") @@ -79,6 +79,7 @@ internal class ImxHost : Host("imx.to", 8) { .replace("http:", "https:") .replace("imx.to", subDomain) .replace("upload/small/", "i/") + .replace("u/i/", "i/") .replace("u/t/", "i/") .replace("t/", "i/") } \ No newline at end of file diff --git a/vripper-core/src/main/kotlin/me/vripper/tasks/FetchMetadataTask.kt b/vripper-core/src/main/kotlin/me/vripper/tasks/FetchMetadataTask.kt index 6ad2f92..d9f1590 100644 --- a/vripper-core/src/main/kotlin/me/vripper/tasks/FetchMetadataTask.kt +++ b/vripper-core/src/main/kotlin/me/vripper/tasks/FetchMetadataTask.kt @@ -44,7 +44,7 @@ internal class FetchMetadataTask( }.build()).also { it.setAbsoluteRequestUri(true) } RequestLimit.getPermit(1) - log.info("Requesting {}", httpGet) + log.info("{}", httpGet) val response = httpService.client.execute(httpGet, vgAuthService.createVgContext()) { if (it.code / 100 != 2) { throw DownloadException("Unexpected response code '${it.code}' for $httpGet") diff --git a/vripper-core/src/main/kotlin/me/vripper/vgapi/PostLookupAPIParser.kt b/vripper-core/src/main/kotlin/me/vripper/vgapi/PostLookupAPIParser.kt index f49a18f..aef0ff5 100644 --- a/vripper-core/src/main/kotlin/me/vripper/vgapi/PostLookupAPIParser.kt +++ b/vripper-core/src/main/kotlin/me/vripper/vgapi/PostLookupAPIParser.kt @@ -42,7 +42,7 @@ internal class PostLookupAPIParser(private val threadId: Long, private val postI ) }.get(CheckedSupplier { RequestLimit.getPermit(1) - log.info("Requesting {}", httpGet) + log.info("{}", httpGet) httpService.client.execute( httpGet, vgAuthService.createClickContext() diff --git a/vripper-core/src/main/kotlin/me/vripper/vgapi/ThreadLookupAPIParser.kt b/vripper-core/src/main/kotlin/me/vripper/vgapi/ThreadLookupAPIParser.kt index f567b85..32d046f 100644 --- a/vripper-core/src/main/kotlin/me/vripper/vgapi/ThreadLookupAPIParser.kt +++ b/vripper-core/src/main/kotlin/me/vripper/vgapi/ThreadLookupAPIParser.kt @@ -44,7 +44,7 @@ internal class ThreadLookupAPIParser(private val threadId: Long) : KoinComponent ) }.get(CheckedSupplier { RequestLimit.getPermit(1) - log.info("Requesting {}", httpGet) + log.info("{}", httpGet) cm.client.execute( httpGet, vgAuthService.createClickContext() ) { response ->