update voice
This commit is contained in:
parent
9ff21cf7b8
commit
79240b1a24
8 changed files with 90 additions and 125 deletions
|
@ -10,13 +10,15 @@
|
|||
items = shuffleArray(items);
|
||||
}
|
||||
|
||||
items = items.map(function (i) {
|
||||
return i.Id;
|
||||
});
|
||||
|
||||
if (items.length) {
|
||||
var serverId = items[0].ServerId;
|
||||
items = items.map(function (i) {
|
||||
return i.Id;
|
||||
});
|
||||
|
||||
playbackManager.play({
|
||||
ids: items
|
||||
ids: items,
|
||||
serverId: serverId
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
@ -63,6 +65,7 @@
|
|||
}
|
||||
|
||||
var apiClient = connectionManager.currentApiClient();
|
||||
|
||||
if (result.item.sourceid === 'nextup') {
|
||||
|
||||
apiClient.getNextUpEpisodes(query).then(function (queryResult) {
|
||||
|
@ -90,7 +93,6 @@
|
|||
query.Filters = 'IsFavorite';
|
||||
}
|
||||
|
||||
|
||||
apiClient.getItems(apiClient.getCurrentUserId(), query).then(function (queryResult) {
|
||||
|
||||
playItems(queryResult.Items, result.item.shuffle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue