From 8cfa00d5bbcee4a789a9d1728a956e144e559744 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:17:06 +0530 Subject: [PATCH] Remove rewriting of thumbnails URLs. They already use WEBP. --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index e093ab8..6bb8dba 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -416,13 +416,6 @@ public class ResponseHelper { path = path.replace("-rj", "-rw"); - if (path.startsWith("/vi/") && !path.contains("_live")) { - path = path.replace("/vi/", "/vi_webp/").replace(".jpg", ".webp").replace("hq720", "mqdefault") - .replace("hqdefault", "mqdefault"); - - hasQuery = false; - } - return Constants.PROXY_PART + path + (hasQuery ? "?" + query + "&host=" : "?host=") + URLUtils.silentEncode(host);