Sending source on playlist add, and printing source and thumbnail api

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-29 14:38:18 +02:00
parent 80ee5084a9
commit 90c8ba353d
2 changed files with 4 additions and 2 deletions

View File

@@ -48,7 +48,9 @@ function addFromOtherList(arr, guid, offline, socket) {
"start": 1,
"duration": 1,
"end": 1,
"type": 1
"type": 1,
"source": 1,
"thumbnail": 1
};
var to_set_np = true;
if(np.length > 0) {

View File

@@ -372,7 +372,7 @@ var Search = {
if((!not_matched)){
matched = true;
Search.readySubmit(true, { id: data.id, title: data.snippet.title, duration: duration, totalLength: totalNumber - 1});
Search.readySubmit(true, { id: data.id, title: data.snippet.title, source: "youtube", duration: duration, totalLength: totalNumber - 1});
break;
}
}