Skip to content

Commit

Permalink
fix documentation for autoplay option
Browse files Browse the repository at this point in the history
Instead of the previously advertised "autoplay on connect",
autoplay makes the playback continue after the selection by
the user has ended.
  • Loading branch information
eladyn authored and slondr committed Mar 11, 2022
1 parent 7b143c4 commit ae6dac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/src/config/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ volume_normalisation = true
# The normalisation pregain that is applied for each song.
normalisation_pregain = -10

# After the music playback has ended, start playing similar songs based on the previous tracks.
autoplay = true

# The port `spotifyd` uses to announce its service over the network.
zeroconf_port = 1234

Expand Down
4 changes: 3 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ pub struct SharedConfigValues {
#[structopt(long, possible_values = &DEVICETYPE_VALUES, value_name = "string")]
device_type: Option<DeviceType>,

/// Autoplay on connect
/// Start playing similar songs after your music has ended
#[structopt(long)]
#[serde(default)]
autoplay: bool,
Expand Down Expand Up @@ -458,6 +458,7 @@ impl fmt::Debug for SharedConfigValues {
.field("zeroconf_port", &self.zeroconf_port)
.field("proxy", &self.proxy)
.field("device_type", &self.device_type)
.field("autoplay", &self.autoplay)
.finish()
}
}
Expand Down Expand Up @@ -527,6 +528,7 @@ impl SharedConfigValues {
self.use_keyring |= other.use_keyring;
self.volume_normalisation |= other.volume_normalisation;
self.no_audio_cache |= other.no_audio_cache;
self.autoplay |= other.autoplay;
}
}

Expand Down

0 comments on commit ae6dac7

Please # to comment.