diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-03 20:08:31 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-03 20:08:31 -0500 |
commit | f960ed0f47a56f0dad0d94aadcd08aa2a3c481fc (patch) | |
tree | 15a1038a5c8bed64926e3351103d7d9d8aefe480 /src/dbus | |
parent | d8fb83aad6254f1a4136a561479310af7b176d9b (diff) |
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/player.rs | 8 |
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")] |