mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-28 15:40:56 +03:00
Added additional protections to verify that the DB is initialized before downloader does
Began work on watching entire subscriptions as a playlist Subscriptions now use the new download manager to download files
This commit is contained in:
@@ -9,10 +9,13 @@ const logger = require('./logger');
|
||||
|
||||
const low = require('lowdb')
|
||||
const FileSync = require('lowdb/adapters/FileSync');
|
||||
const { BehaviorSubject } = require('rxjs');
|
||||
const local_adapter = new FileSync('./appdata/local_db.json');
|
||||
const local_db = low(local_adapter);
|
||||
|
||||
let database = null;
|
||||
exports.database_initialized = false;
|
||||
exports.database_initialized_bs = new BehaviorSubject(false);
|
||||
|
||||
const tables = {
|
||||
files: {
|
||||
|
||||
Reference in New Issue
Block a user