feat(webdav): 实现WebDAV写入功能和STRM文件支持。 - #15
Merged
Merged
Conversation
refactor(scan_file): 移除重复的运行检查并改进停止逻辑 修复停止方法中的竞态条件,添加互斥锁保护 refactor(fs): 统一使用filepath代替path处理路径 改进文件删除操作的错误处理和日志记录 fix(fs): 在批量创建前设置ParentId并添加空值检查 防止潜在的nil指针异常
将多处直接使用字符串作为文件附加属性键的代码替换为使用预定义的常量,提高代码可维护性和可读性
修复多处类型断言未检查的问题,避免潜在panic风险 优化删除操作的响应格式,直接返回状态码 添加缓存URL的类型检查,格式错误时记录警告并继续处理 确保HTTP响应体关闭,避免资源泄漏
修复FileDetail.vue中复制链接成功后toast提示被重复显示的问题,现在无论通过现代API还是降级方法都会正确显示一次提示 在FileBrowser.vue中添加管理员权限检查,只有管理员才能看到删除按钮
- 在配置文件中新增fileDir和logFile配置项 - 实现自动创建日志目录和文件存储目录功能 - 更新文档说明新增的STRM文件生成和WebDAV写入功能 - 优化Docker镜像构建流程,改进版本标签处理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 本次合并更新
✨ 新增功能
WebDAV 写入支持
STRM 文件自动生成
.strm播放列表🌟 主要特性
双 WebDAV 端点
/dav:标准端点,返回原始文件/strm_dav:媒体服务器端点,返回 STRM 文件权限控制
文件管理
STRM 配置
媒体服务器集成
🔧 技术实现
service_put.go、service_delete.go,处理 WebDAV 写入与删除job_scan_file.go中集成 STRM 文件生成任务/strm_dav端点以获得最佳播放体验