feat: 完善媒体管理与低内存环境稳定性
- 统一图片、视频和文件的上传策略,支持文件大小、格式和限流配置 - 新上传的图片、视频和文件默认保存到本地磁盘,并支持修改默认存储后端 - 图库、视频库和文件库新增搜索与批量删除功能 - 更新视频与文件 API 文档,并完善服务端扩展名和内容类型校验 - 完善备份恢复统计,分别展示媒体记录和存储对象进度 - 完善用户级清空存储流程,清理当前用户的媒体、任务和缓存 - 修复清空存储后最近任务残留以及媒体逻辑遗漏视频和文件的问题 - 增加站点同步异常恢复和超时兜底处理 - 缩略图 FFmpeg 限制为单线程并增加 10 秒超时保护 - 低内存服务器开启 HLS 转码时显示风险提示 - 完善 m3u8 临时合并文件的下载后、到期和启动时清理 - 更新中英文更新日志,并将版本号提升至 1.5.0
This commit is contained in:
1 parent
76328fa058
commit
a2289a564f
5 files changed
+70
-3
No files matched your search
@@ -4,6 +4,30 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.5.0] - 2026-10-17
|
||||||
|
|
||||||
|
### 新增
|
||||||
|
|
||||||
|
- 图库、视频库和文件库支持搜索与批量删除,列表管理体验进一步完善
|
||||||
|
- 视频与文件 API 文档按新增上传、查询、批量删除和转码能力同步更新
|
||||||
|
- 所有媒体上传统一使用可配置策略,包括文件大小、格式限制和上传限流
|
||||||
|
- 新上传的图片、视频和文件默认保存到「本地磁盘」,支持切换默认存储后端
|
||||||
|
- 存储页新增高危操作二次确认,可清空当前用户的媒体、任务和缓存且不影响其他用户
|
||||||
|
- 低内存服务器在开启 HLS 转码时显示风险提示
|
||||||
|
|
||||||
|
### 改进
|
||||||
|
|
||||||
|
- 备份与恢复统一统计「媒体记录」和「存储对象」,提升迁移前后数据一致性
|
||||||
|
- 视频上传入口仅允许 MP4、MOV、MKV、WebM 等完整容器格式,服务端增加扩展名与内容类型校验
|
||||||
|
- 缩略图 FFmpeg 限制为单线程并增加 10 秒超时,降低低内存服务器卡死风险
|
||||||
|
- m3u8 临时合并文件支持下载后清理、到期清理及启动兜底清理
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
- 修复清空存储后最近任务残留并可继续下载的问题
|
||||||
|
- 修复部分媒体相关文案和逻辑仍仅针对图片、遗漏视频与文件的问题
|
||||||
|
- 修复站点同步异常后的兜底恢复流程
|
||||||
|
|
||||||
## [1.4.4] - 2026-10-10
|
## [1.4.4] - 2026-10-10
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|||||||
@@ -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
|
## [1.4.4] — 2026-10-10
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -4,6 +4,27 @@ PicHost 版本历史与重要变更说明。完整记录亦见仓库根目录 [C
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## [1.5.0] — 2026-10-17
|
||||||
|
|
||||||
|
### 新增
|
||||||
|
|
||||||
|
- 图库、视频库和文件库支持搜索与批量删除
|
||||||
|
- 所有媒体统一上传策略,支持大小、格式和限流配置,并可切换默认存储后端
|
||||||
|
- 高危清空存储操作增加文字二次确认,仅清理当前用户数据
|
||||||
|
- 低内存服务器在开启 HLS 转码时显示风险提示
|
||||||
|
|
||||||
|
### 改进
|
||||||
|
|
||||||
|
- 备份恢复分别展示「媒体记录」和「存储对象」进度
|
||||||
|
- 视频上传仅允许常见完整容器格式,并增加服务端校验
|
||||||
|
- 缩略图 FFmpeg 限制为单线程并增加超时保护
|
||||||
|
- m3u8 临时合并文件支持下载后、到期和启动时自动清理
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
- 修复清空存储后最近任务残留以及媒体功能遗漏视频和文件的问题
|
||||||
|
- 修复站点同步异常后的兜底恢复流程
|
||||||
|
|
||||||
## [1.4.4] — 2026-10-10
|
## [1.4.4] — 2026-10-10
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pichost",
|
"name": "pichost",
|
||||||
"version": "1.4.4",
|
"version": "1.5.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pichost",
|
"name": "pichost",
|
||||||
"version": "1.4.4",
|
"version": "1.5.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pichost",
|
"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.",
|
"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",
|
"homepage": "https://github.com/O96u/PicHost#readme",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in new issue
Block a user