Include category save path in web api sync data

This commit is contained in:
Thomas Piccirello 2018-07-23 00:53:56 -04:00
parent d89ef22d85
commit a0e6007fc1
2 changed files with 14 additions and 8 deletions

View file

@ -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;