Remove rewriting of thumbnails URLs.

They already use WEBP.
This commit is contained in:
FireMasterK 2021-03-30 15:17:06 +05:30
parent 0d76c7437e
commit 8cfa00d5bb
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -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);