Scaffolding for registering subscription downloads

This commit is contained in:
Tzahi12345
2020-06-03 19:18:10 -04:00
parent d3d0f92ea5
commit d8e85df6d6
2 changed files with 94 additions and 0 deletions

View File

@@ -323,6 +323,8 @@ async function getVideosForSub(sub, user_uid = null) {
resolve(true);
}
});
}, err => {
logger.error(err);
});
}
@@ -337,6 +339,9 @@ function handleOutputJSON(sub, sub_db, output_json, reset_videos = false) {
// add to db
sub_db.get('videos').push(output_json).write();
} else {
// TODO: make multiUserMode obj
db_api.registerFileDB(output_json['_filename'], sub.type, multiUserMode, sub);
}
}