From 8a21f274ac172bf08fa47fde044f57e8bea7c38b Mon Sep 17 00:00:00 2001 From: raileo98 <164594063+raileo98@users.noreply.github.com> Date: Tue, 22 Oct 2024 01:39:33 +0000 Subject: [PATCH] Update rthk.py --- code/rthk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/rthk.py b/code/rthk.py index 339c49122..f5f545cd8 100644 --- a/code/rthk.py +++ b/code/rthk.py @@ -412,7 +412,8 @@ async def cache_image(imageUrl): async def optimize_image_quality(imgUrl): q = 99 - latest_imgUrl = imgUrl # 預設為原始圖片 URL + # latest_imgUrl = imgUrl # 預設為原始圖片 URL + latest_imgUrl = imgUrl.replace('n=-1', f'n=-1&q=1') latestAvailableQ = None while True: