Better fake up Album model for stricter mopidy validation. (Fixes #111).
This is a bit of a hack. The better solution is to only send URIs rather than full Track models.
This commit is contained in:
parent
ab59c7be00
commit
0a4c3ceed3
@ -238,7 +238,7 @@ function resultsToTables(results, target, uri) {
|
|||||||
for (i = 0; i < length; i++) {
|
for (i = 0; i < length; i++) {
|
||||||
//create album if none extists
|
//create album if none extists
|
||||||
if (!results[i].album) {
|
if (!results[i].album) {
|
||||||
results[i].album = {};
|
results[i].album = {"__model__": "Album"};
|
||||||
}
|
}
|
||||||
//create album uri if there is none
|
//create album uri if there is none
|
||||||
if (!results[i].album.uri) {
|
if (!results[i].album.uri) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user