Fixed thumbnail issue

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-20 16:22:24 +02:00
parent 9db975e9e8
commit c25b45c314
4 changed files with 10 additions and 11 deletions

View File

@@ -381,7 +381,7 @@ function change_song_post(coll, next_song, callback, socket) {
List.send_play(coll, socket, true);
callback();
}
Frontpage.update_frontpage(coll, docs[0].id, docs[0].title, docs[0].thumbnail);
Frontpage.update_frontpage(coll, docs[0].id, docs[0].title, docs[0].thumbnail, docs[0].source);
});
});
});
@@ -439,7 +439,7 @@ function send_list(coll, socket, send, list_send, configs, shuffled)
skips:[]
}
}, function(err, returnDocs){
Frontpage.update_frontpage(coll, now_playing_doc[0].id, now_playing_doc[0].title, now_playing_doc[0].thumbnail);
Frontpage.update_frontpage(coll, now_playing_doc[0].id, now_playing_doc[0].title, now_playing_doc[0].thumbnail, now_playing_doc[0].source);
List.send_list(coll, socket, send, list_send, configs, shuffled);
});
});