mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
feat(image): 增加对 JPEG 和 HEIC 图片格式的支持
- 在图片下载功能中添加了对 JPEG 和 HEIC 格式的支持 - 更新了相关模块和文档以支持新功能 Closes #229
This commit is contained in:
@@ -138,8 +138,8 @@ class Manager:
|
||||
|
||||
@staticmethod
|
||||
def __check_image_format(image_format) -> str:
|
||||
if image_format in {"png", "PNG", "webp", "WEBP"}:
|
||||
return image_format.lower()
|
||||
if (i := image_format.lower()) in {"auto", "png", "webp", "jpeg", "heic", "avif", }:
|
||||
return i
|
||||
return "png"
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user