Merge pull request #1638 from mike-jl/wsapi-get-rating
Add ability to get rating via the websocket api
This commit is contained in:
commit
23f1de90bd
1 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,10 @@ const wsapi = {
|
|||
.then(function () {
|
||||
ipcRenderer.send("wsapi-rate", kind, id, rating);
|
||||
});
|
||||
} else if (rating === undefined) {
|
||||
app.getRating({ type: truekind, id: id }).then((rating) => {
|
||||
ipcRenderer.send("wsapi-rate", kind, id, rating);
|
||||
});
|
||||
} else {
|
||||
app.mk.api.v3
|
||||
.music(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue