Refactored subscribing process to remove bugs in the old system

images are now deleted from subscription videos when unsubscribing
This commit is contained in:
Isaac Grynsztein
2020-03-10 02:03:10 -04:00
parent bb925ac0c8
commit 9d1aaf95ed
2 changed files with 88 additions and 54 deletions

View File

@@ -965,7 +965,7 @@ app.post('/api/getSubscription', async (req, res) => {
files = recFindByExt(appended_base_path, 'mp4');
} catch(e) {
files = null;
console.log('Failed to get folder for subscription: ' + subscription.name);
console.log('Failed to get folder for subscription: ' + subscription.name + ' at path ' + appended_base_path);
res.sendStatus(500);
return;
}