mirror of
https://github.com/PaiGramTeam/FixMiYouShe.git
synced 2024-11-25 09:27:45 +00:00
🐛 Fix image url not lower
This commit is contained in:
parent
892ef123b1
commit
0608edaa0d
@ -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}"/>'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user