diff --git a/vripper-core/src/main/kotlin/me/mnlr/vripper/host/PimpandhostHost.kt b/vripper-core/src/main/kotlin/me/mnlr/vripper/host/PimpandhostHost.kt index d7ebc6f..413609b 100644 --- a/vripper-core/src/main/kotlin/me/mnlr/vripper/host/PimpandhostHost.kt +++ b/vripper-core/src/main/kotlin/me/mnlr/vripper/host/PimpandhostHost.kt @@ -31,7 +31,7 @@ class PimpandhostHost( ): Pair { val newUrl: String try { - newUrl = appendUri(url.replace("http://", "https://"), "size=original") + newUrl = appendUri(url.replace("http://", "https://").replace("-medium(\\.html)?".toRegex(), ""), "size=original") } catch (e: Exception) { throw HostException(e) } @@ -82,4 +82,4 @@ class PimpandhostHost( private const val lookup = "pimpandhost.com" private const val IMG_XPATH = "//img[contains(@class, 'original')]" } -} \ No newline at end of file +}