summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/player.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dbus/player.rs b/src/dbus/player.rs
index a78d7ed..b3424a4 100644
--- a/src/dbus/player.rs
+++ b/src/dbus/player.rs
@@ -176,7 +176,7 @@ pub struct Metadata {
/// Integer: The speed of the music, in beats per minute.
#[zvariant(rename = "xesam:audioBPM")]
- pub audio_bpm: Option<u64>,
+ pub audio_bpm: Option<i32>,
/// Float: An automatically-generated rating, based on things such as how often it has been played. This should be in the range 0.0 to 1.0.
#[zvariant(rename = "xesam:autoRating")]
@@ -196,7 +196,7 @@ pub struct Metadata {
/// Integer: The disc number on the album that this track is from.
#[zvariant(rename = "xesam:discNumber")]
- pub disc_number: Option<u64>,
+ pub disc_number: Option<i32>,
/// Date/Time: When the track was first played.
#[zvariant(rename = "xesam:firstUsed")]
@@ -220,7 +220,7 @@ pub struct Metadata {
/// Integer: The track number on the album disc.
#[zvariant(rename = "xesam:trackNumber")]
- pub track_number: Option<u64>,
+ pub track_number: Option<i32>,
/// URI: The location of the media file.
#[zvariant(rename = "xesam:url")]
@@ -228,7 +228,7 @@ pub struct Metadata {
/// Integer: The number of times the track has been played.
#[zvariant(rename = "xesam:useCount")]
- pub use_count: Option<u64>,
+ pub use_count: Option<i32>,
/// Float: A user-specified rating. This should be in the range 0.0 to 1.0.
#[zvariant(rename = "xesam:userRating")]