mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Include category save path in web api sync data
This commit is contained in:
parent
d89ef22d85
commit
a0e6007fc1
2 changed files with 14 additions and 8 deletions
|
@ -317,9 +317,10 @@ window.addEvent('load', function() {
|
|||
}
|
||||
if (response['categories']) {
|
||||
response['categories'].each(function(category) {
|
||||
var categoryHash = genHash(category);
|
||||
var categoryHash = genHash(category.name);
|
||||
category_list[categoryHash] = {
|
||||
name: category,
|
||||
name: category.name,
|
||||
savePath: category.savePath,
|
||||
torrents: []
|
||||
};
|
||||
});
|
||||
|
@ -327,7 +328,7 @@ window.addEvent('load', function() {
|
|||
}
|
||||
if (response['categories_removed']) {
|
||||
response['categories_removed'].each(function(category) {
|
||||
var categoryHash = genHash(category);
|
||||
var categoryHash = genHash(category.name);
|
||||
delete category_list[categoryHash];
|
||||
});
|
||||
update_categories = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue