Change tidal track duration to milliseconds
CI checks / stable / fmt (push) Successful in 3s Details

This commit is contained in:
Hans Mündelein 2023-06-14 11:31:15 +02:00
parent efc36e88f8
commit a4303b9b70
Signed by: hans
GPG Key ID: BA7B55E984CE74F4
2 changed files with 1 additions and 5 deletions

View File

@ -61,10 +61,6 @@ impl QueueManager {
let pos = self.current_position();
self.current_offset = pos;
self.play_order = (0..self.tracks.len()).collect();
debug!(
"offset: {}, order: {:?}",
self.current_offset, self.play_order
);
}
pub fn shuffle_all(&mut self) {

View File

@ -162,7 +162,7 @@ impl From<Track> for crabidy_core::proto::crabidy::Track {
title: track.title,
artist: track.artist.name,
album: Some(track.album.into()),
duration: Some(track.duration as u32),
duration: Some(track.duration as u32 * 1000),
}
}
}