Merge pull request #1638 from mike-jl/wsapi-get-rating

Add ability to get rating via the websocket api
This commit is contained in:
Elliot Jarnit 2023-01-18 11:15:06 -08:00 committed by GitHub
commit 23f1de90bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(