1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Fix 'play' command requiring 'offset' field (#1418)

* Fix 'play' command requiring 'offset' field

* Derive 'Default' for SkipTo
This commit is contained in:
Fabio Waljaard 2024-12-14 22:28:53 +01:00 committed by GitHub
parent 72b6ad9397
commit 00679fc78d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -170,7 +170,7 @@ pub struct TransferOptions {
#[derive(Clone, Debug, Deserialize)]
pub struct PlayOptions {
pub skip_to: SkipTo,
pub skip_to: Option<SkipTo>,
#[serde(default, deserialize_with = "option_json_proto")]
pub player_options_override: Option<ContextPlayerOptionOverrides>,
pub license: Option<String>,
@ -191,7 +191,7 @@ pub struct OptionsOptions {
system_initiated: bool,
}
#[derive(Clone, Debug, Deserialize)]
#[derive(Clone, Debug, Deserialize, Default)]
pub struct SkipTo {
pub track_uid: Option<String>,
pub track_uri: Option<String>,