-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: qb 支持自动添加分类 #1588
feat: qb 支持自动添加分类 #1588
Conversation
这个会和现有的分类逻辑冲突吗? ffc4681 |
额, 会.
我修改的时候也看到了这个加分类的操作, 但是这块没找到地方配置, 也没有说明, 我以为是不支持.
fzlins ***@***.***> 于2023年9月17日周日 20:38写道:
… 现在分类逻辑下载目录里配置的。
[image: image]
<https://user-images.githubusercontent.com/100051558/268502169-32c6329b-ebda-40a5-acf1-bdbeff082917.png>
—
Reply to this email directly, view it on GitHub
<#1588 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIBEY24YPGV3XW5KPIGITPTX23VN3ANCNFSM6AAAAAA43SS7OM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
if (clientOptions && clientOptions.enableCategory) { | ||
qbCategories = clientOptions.qbCategories | ||
if (qbCategories && qbCategories.length > 0) { | ||
let qbCategory = qbCategories.find(c => c.path === savePath) | ||
// qb 4.5.2 实测 autoTMM 为 true 的情况下, 如果指定分类, 存储路径以分类为准. | ||
// 分类不存在时, 会自动创建分类, 路径为 `默认下载路径/分类名称`. | ||
// nastool 会自动维护分类, 这里不做那么细致的处理. | ||
// 所以路径不匹配的情况下, 需要禁用 autoTMM | ||
if (qbCategory) { | ||
// 以用户手动设置为准 | ||
category = qbCategory.name | ||
autoTMM = true | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也就说现在有两处可以配置分类. 一是下载路径,二是下载器配置. 如果分类有重叠的话, 从实现上来说会以我这个为准. @fzlins
个人想法供参考:路径和分类只能二选一配置,用了分类autoTMM就开启否则关闭。会用分类的用户自然会在QB里配置好路径等等。这样逻辑和配置都会简化 |
这么设计也是为了避免出错 假设路径与分类没有匹配就会下到默认路径下 |
可以忽略 fzlins 提出的这种配置方法.
|
#77 #1030 #1518 #1564
使用步骤
反馈要求
注意
下载路径/分类名称
截图
参考文档
其他
直接判断路径
的方式, 而不是选择下载到分类
这种操作.