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:
parent
72b6ad9397
commit
00679fc78d
3 changed files with 4 additions and 3 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue