Fix for api/queue wrong response parsing
This commit is contained in:
1 parent
c156865de7
commit
2e826e02cd
2 files changed
+6
-4
No files matched your search
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Nothing worth mentioning yet.
|
||||||
|
|
||||||
## [0.23.1] - 2024-04-24
|
## [0.23.1] - 2024-04-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -94,16 +94,14 @@ export class PlayletApi {
|
|||||||
args.timestamp = parseInt(args.timestamp);
|
args.timestamp = parseInt(args.timestamp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const response = await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
||||||
return await response.json();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async queuePlaylist(args) {
|
static async queuePlaylist(args) {
|
||||||
if (!args.playlistId) {
|
if (!args.playlistId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const response = await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
||||||
return await response.json();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async openPlaylist(playlistId) {
|
static async openPlaylist(playlistId) {
|
||||||
|
|||||||
Reference in new issue
Block a user