Fix for suggested videos not correctly being added. Closes #502

This commit is contained in:
Kasper Rynning-Tønnesen
2019-04-06 15:28:06 +02:00
parent 1e7153b995
commit cfd0dc88fd

View File

@@ -1693,7 +1693,7 @@ function addDynamicListeners() {
var added_by = e.getAttribute("data-added-by");
var source = "youtube";
var thumbnail;
if(e.getAttribute("data-video-source") != undefined) {
if(e.getAttribute("data-video-source") != "youtube") {
source = "soundcloud";
thumbnail = e.getAttribute("data-type-thumbnail");
}