Include category save path in web api sync data

This commit is contained in:
Thomas Piccirello
2018-07-23 00:53:56 -04:00
committed by sledgehammer999
parent 435daaceed
commit c28cbe0a74
2 changed files with 14 additions and 8 deletions

View File

@@ -328,9 +328,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: []
};
});
@@ -338,7 +339,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;