mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 11:01:29 +03:00
Added scaffolding for custom paths in subscriptions
This commit is contained in:
@@ -1083,7 +1083,7 @@ function registerFileDB(file_path, type, multiUserMode = null) {
|
|||||||
|
|
||||||
if (multiUserMode) {
|
if (multiUserMode) {
|
||||||
auth_api.registerUserFile(multiUserMode.user, file_object, type);
|
auth_api.registerUserFile(multiUserMode.user, file_object, type);
|
||||||
} else {
|
} else if (type === 'audio' || type === 'video') {
|
||||||
// remove existing video if overwriting
|
// remove existing video if overwriting
|
||||||
db.get(`files.${type}`)
|
db.get(`files.${type}`)
|
||||||
.remove({
|
.remove({
|
||||||
@@ -1093,6 +1093,8 @@ function registerFileDB(file_path, type, multiUserMode = null) {
|
|||||||
db.get(`files.${type}`)
|
db.get(`files.${type}`)
|
||||||
.push(file_object)
|
.push(file_object)
|
||||||
.write();
|
.write();
|
||||||
|
} else if (type == 'subscription') {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return file_object['uid'];
|
return file_object['uid'];
|
||||||
|
|||||||
Reference in New Issue
Block a user