Added video downloading functionality to multi user mode, as well as playlist management and saving of videos locally. Still missing video deletions and subscriptions

Simplified code for downloading videos to client (locally)
This commit is contained in:
Isaac Grynsztein
2020-04-26 17:40:28 -04:00
parent cb6451ef96
commit fa1b291f97
3 changed files with 256 additions and 103 deletions

View File

@@ -9,7 +9,9 @@ var youtubedl = require('youtube-dl');
const config_api = require('./config');
const adapter = new FileSync('./appdata/db.json');
const users_adapter = new FileSync('./appdata/users.json');
const db = low(adapter)
const db_users = low(users_adapter);
const debugMode = process.env.YTDL_MODE === 'debug';