From a2289a564fb5060711ec23d8cf749b0d2038c164 Mon Sep 17 00:00:00 2001 From: tianmo Date: Sat, 17 Oct 2026 16:34:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=8E=E4=BD=8E=E5=86=85=E5=AD=98=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一图片、视频和文件的上传策略,支持文件大小、格式和限流配置 - 新上传的图片、视频和文件默认保存到本地磁盘,并支持修改默认存储后端 - 图库、视频库和文件库新增搜索与批量删除功能 - 更新视频与文件 API 文档,并完善服务端扩展名和内容类型校验 - 完善备份恢复统计,分别展示媒体记录和存储对象进度 - 完善用户级清空存储流程,清理当前用户的媒体、任务和缓存 - 修复清空存储后最近任务残留以及媒体逻辑遗漏视频和文件的问题 - 增加站点同步异常恢复和超时兜底处理 - 缩略图 FFmpeg 限制为单线程并增加 10 秒超时保护 - 低内存服务器开启 HLS 转码时显示风险提示 - 完善 m3u8 临时合并文件的下载后、到期和启动时清理 - 更新中英文更新日志,并将版本号提升至 1.5.0 --- CHANGELOG.md | 24 ++++++++++++++++++++++++ docs-site/en/guide/changelog.md | 22 ++++++++++++++++++++++ docs-site/guide/changelog.md | 21 +++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 70 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29ba413..0a9721a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,30 @@ ## [Unreleased] +## [1.5.0] - 2026-10-17 + +### 新增 + +- 图库、视频库和文件库支持搜索与批量删除,列表管理体验进一步完善 +- 视频与文件 API 文档按新增上传、查询、批量删除和转码能力同步更新 +- 所有媒体上传统一使用可配置策略,包括文件大小、格式限制和上传限流 +- 新上传的图片、视频和文件默认保存到「本地磁盘」,支持切换默认存储后端 +- 存储页新增高危操作二次确认,可清空当前用户的媒体、任务和缓存且不影响其他用户 +- 低内存服务器在开启 HLS 转码时显示风险提示 + +### 改进 + +- 备份与恢复统一统计「媒体记录」和「存储对象」,提升迁移前后数据一致性 +- 视频上传入口仅允许 MP4、MOV、MKV、WebM 等完整容器格式,服务端增加扩展名与内容类型校验 +- 缩略图 FFmpeg 限制为单线程并增加 10 秒超时,降低低内存服务器卡死风险 +- m3u8 临时合并文件支持下载后清理、到期清理及启动兜底清理 + +### 修复 + +- 修复清空存储后最近任务残留并可继续下载的问题 +- 修复部分媒体相关文案和逻辑仍仅针对图片、遗漏视频与文件的问题 +- 修复站点同步异常后的兜底恢复流程 + ## [1.4.4] - 2026-10-10 ### 修复 diff --git a/docs-site/en/guide/changelog.md b/docs-site/en/guide/changelog.md index ab8faf5..ffc5fa5 100644 --- a/docs-site/en/guide/changelog.md +++ b/docs-site/en/guide/changelog.md @@ -4,6 +4,28 @@ Version history and notable changes. The full log is also in the repo root [CHAN --- +## [1.5.0] — 2026-10-17 + +### Added + +- Search and batch deletion for the image, video, and file libraries +- Unified upload policy for all media with configurable size, format, and rate limits +- Default storage backend selection for newly uploaded images, videos, and files +- High-risk storage clearing with typed confirmation, scoped to the current user +- Low-memory warning when enabling HLS transcoding + +### Improved + +- Backup and restore progress now reports media records and storage objects separately +- Video uploads are limited to complete container formats with server-side validation +- Thumbnail FFmpeg processing is single-threaded and protected by a timeout +- Temporary m3u8-to-MP4 files are cleaned after download, on expiry, and during startup + +### Fixed + +- Stale recent tasks after clearing storage and media logic that only covered images +- Recovery fallback for interrupted site synchronization + ## [1.4.4] — 2026-10-10 ### Fixed diff --git a/docs-site/guide/changelog.md b/docs-site/guide/changelog.md index 7ed04ea..4bc665b 100644 --- a/docs-site/guide/changelog.md +++ b/docs-site/guide/changelog.md @@ -4,6 +4,27 @@ PicHost 版本历史与重要变更说明。完整记录亦见仓库根目录 [C --- +## [1.5.0] — 2026-10-17 + +### 新增 + +- 图库、视频库和文件库支持搜索与批量删除 +- 所有媒体统一上传策略,支持大小、格式和限流配置,并可切换默认存储后端 +- 高危清空存储操作增加文字二次确认,仅清理当前用户数据 +- 低内存服务器在开启 HLS 转码时显示风险提示 + +### 改进 + +- 备份恢复分别展示「媒体记录」和「存储对象」进度 +- 视频上传仅允许常见完整容器格式,并增加服务端校验 +- 缩略图 FFmpeg 限制为单线程并增加超时保护 +- m3u8 临时合并文件支持下载后、到期和启动时自动清理 + +### 修复 + +- 修复清空存储后最近任务残留以及媒体功能遗漏视频和文件的问题 +- 修复站点同步异常后的兜底恢复流程 + ## [1.4.4] — 2026-10-10 ### 修复 diff --git a/package-lock.json b/package-lock.json index 62f61cc..1c1716c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pichost", - "version": "1.4.4", + "version": "1.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pichost", - "version": "1.4.4", + "version": "1.5.0", "hasInstallScript": true, "license": "GPL-3.0-only", "dependencies": { diff --git a/package.json b/package.json index 134248c..9635965 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pichost", - "version": "1.4.4", + "version": "1.5.0", "description": "Self-hosted image hosting for your NAS / home server — Nuxt admin UI, local disk or S3-compatible storage, server-side WebP compression, referer protection, Twikoo/EasyImage compatible.", "homepage": "https://github.com/O96u/PicHost#readme", "repository": {