Tags add for add songs and in api

This commit is contained in:
Kasper Rynning-Tønnesen
2019-02-24 23:39:36 +01:00
parent 46f0882a63
commit c66d6efa76
6 changed files with 25 additions and 12 deletions

View File

@@ -35,7 +35,8 @@ var project_object = {
$ifNull: [ "$thumbnail", {
$concat : [ "https://img.youtube.com/vi/", "$id", "/mqdefault.jpg"]
} ]
}
},
"tags": { $ifNull: [ "$tags", [] ] },
};
var toShowChannel = {
@@ -48,6 +49,7 @@ var toShowChannel = {
duration: 1,
type: 1,
_id: 0,
tags: 1,
now_playing: 1,
type: 1,
source: 1,