Cleaned up logs

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-04 21:19:10 +02:00
parent 31f466d2f2
commit 2db07b0040
11 changed files with 40 additions and 176 deletions

View File

@@ -85,7 +85,6 @@ function list(msg, guid, coll, offline, socket) {
socket.join(coll);
List.send_list(coll, socket, true, false, true);
db.collection("frontpage_lists").insert({"_id": coll, "count" : 0, "frontpage": true, "accessed": Functions.get_time(), "viewers": 1}, function(e,d){
console.log("added new channel", coll);
});
Functions.check_inlist(coll, guid, socket, offline);
});

View File

@@ -381,8 +381,6 @@ function add_function(arr, coll, guid, offline, socket) {
}
var new_song = {"added": added,"guids":guids,"id":id,"now_playing":np,"title":title,"votes":votes, "duration":duration, "start": parseInt(start), "end": parseInt(end), "type": "video", "source": source};
if(source == "soundcloud") new_song.thumbnail = arr.thumbnail;
console.log(new_song);
//return;
db.collection(coll).update({id: id}, new_song, {upsert: true}, function(err, docs){
new_song._id = "asd";
if(np) {