mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Scaffolding for registering subscription downloads
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user