update multi-select
This commit is contained in:
parent
b4f87ddb3a
commit
4035ba7066
4 changed files with 31 additions and 28 deletions
|
@ -249,6 +249,19 @@ define(['playbackManager', 'inputManager', 'connectionManager', 'embyRouter', 'g
|
|||
editItem(item, serverId);
|
||||
});
|
||||
}
|
||||
|
||||
else if (action == 'playtrailer') {
|
||||
getItem(target).then(playTrailer);
|
||||
}
|
||||
}
|
||||
|
||||
function playTrailer(item) {
|
||||
|
||||
var apiClient = connectionManager.getApiClient(item.ServerId);
|
||||
|
||||
apiClient.getLocalTrailers(apiClient.getCurrentUserId(), item.Id).then(function (trailers) {
|
||||
playbackManager.play({ items: trailers });
|
||||
});
|
||||
}
|
||||
|
||||
function editItem(item, serverId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue