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:
Nick Steel 2015-06-17 23:51:26 +01:00
parent ab59c7be00
commit 0a4c3ceed3

View File

@ -238,7 +238,7 @@ function resultsToTables(results, target, uri) {
for (i = 0; i < length; i++) {
//create album if none extists
if (!results[i].album) {
results[i].album = {};
results[i].album = {"__model__": "Album"};
}
//create album uri if there is none
if (!results[i].album.uri) {