perf: 更新项目默认配置参数

1. 更新项目 README
2. 更新默认 UserAgent
3. 默认图片格式修改为 JPEG
4. 修正项目描述错误
This commit is contained in:
Quan
2026-01-07 20:15:38 +08:00
parent 086ff930e1
commit f68ac8477e
9 changed files with 40 additions and 31 deletions

View File

@@ -158,7 +158,7 @@ class Manager:
"avif",
}:
return i
return "png"
return "jpeg"
@staticmethod
def is_exists(path: Path) -> bool:

View File

@@ -21,7 +21,7 @@ class Settings:
"chunk": 1024 * 1024 * 2, # 下载块大小(字节)
"max_retry": 5, # 最大重试次数
"record_data": False, # 是否记录作品数据
"image_format": "PNG", # 图文作品格式
"image_format": "JPEG", # 图文作品格式
"image_download": True, # 是否下载图文
"video_download": True, # 是否下载视频
"live_download": False, # 是否下载动图

View File

@@ -16,7 +16,10 @@ RELEASES = "https://github.com/JoeanAmier/XHS-Downloader/releases/latest"
USERSCRIPT = "https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js"
USERAGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
USERAGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 "
"Safari/537.36 Edg/143.0.0.0"
)
HEADERS = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,"