Fix: 强制指定文件名,以避免服务器返回无后缀filename #562
Merged
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.
在前几天的运行过程中发现有部分下载任务落盘的文件不带后缀名,但是Season 2以上的文件不受此影响。


查阅源码后发现,Season 2以上的文件名,是我通过解析器处理xml的title得到,但Season 1只是单纯的发送下载链接,其它事情交由download provider和服务器自行协商。
询问API管理员,收到的答复称该现象无法避免,因此在代码中给Season 1也强制指定了文件名