Skip to content

Conversation

@varg1714
Copy link
Contributor

Description / 描述

修复strm驱动的文件名称问题以及下载类型文件问题。

Motivation and Context / 背景

对于如果原始文件名的后缀是大写的情况,utils.Ext(name) 执行会强制转换为小写,因此在后续的替换操作:strings.TrimSuffix(name, sourceExt) + "strm" 中将出现非预期的效果。原始文件名将会被保留,且追加了 strm 后缀。

例如 1.MP4 将会变成 1.MP4strm

此外初始化操作中,downloadSuffix 被添加到 supportSuffix中了,会导致文件格式匹配错误。

How Has This Been Tested? / 测试

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

@KirCute KirCute requested a review from sevxn007 November 12, 2025 15:50
@jyxjjj jyxjjj requested a review from sevxn007 November 21, 2025 04:16
@jyxjjj jyxjjj linked an issue Nov 24, 2025 that may be closed by this pull request
8 tasks
@jyxjjj jyxjjj merged commit 4c0916b into OpenListTeam:main Nov 24, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] strm生成问题:如果视频后缀是MP4,strm生成后缀名有错

3 participants