Fixed several bugs with categories

Code cleanup
This commit is contained in:
Isaac Abadi
2022-06-16 23:42:47 -04:00
parent eee8494c70
commit 53a181e04d
5 changed files with 8 additions and 41 deletions

View File

@@ -66,6 +66,7 @@ async function getCategoriesAsPlaylists(files = null) {
category['thumbnailPath'] = files_that_match[0].thumbnailPath;
category['duration'] = files_that_match.reduce((a, b) => a + utils.durationStringToNumber(b.duration), 0);
category['id'] = category['uid'];
category['auto'] = true;
categories_as_playlists.push(category);
}
}