Fixed bug that preventing playlists from being downloaded a zip

This commit is contained in:
Isaac Abadi
2020-09-24 02:26:58 -04:00
parent 899633e124
commit 6717a59422
4 changed files with 15 additions and 10 deletions

View File

@@ -283,6 +283,7 @@ exports.getUserVideos = function(user_uid, type) {
}
exports.getUserVideo = function(user_uid, file_uid, type, requireSharing = false) {
let file = null;
if (!type) {
file = users_db.get('users').find({uid: user_uid}).get(`files.audio`).find({uid: file_uid}).value();
if (!file) {