🐛 Fix image url not lower

This commit is contained in:
xtaodada 2023-08-25 15:31:39 +08:00
parent 892ef123b1
commit 0608edaa0d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -45,7 +45,8 @@ def get_description(soup: BeautifulSoup) -> str:
def format_image_url(url: str) -> str:
if url.endswith(".png") or url.endswith(".jpg"):
lower_url = url.lower()
if lower_url.endswith(".png") or lower_url.endswith(".jpg"):
url += get_images_params()
return f'<img src="{url}"/>'