this is now a warn

This commit is contained in:
Erica Z 2024-11-05 10:24:59 +01:00
parent fec04928b8
commit 6c01d94f69

View file

@ -382,11 +382,16 @@ mod imp {
} }
.unwrap(); .unwrap();
assert_eq!( {
duration.map(|f| f as i64), let left = duration.map(|f| f as i64);
self.song().as_ref().map(crate::PlaybinSong::duration), let right = self.song().as_ref().map(crate::PlaybinSong::duration);
"mpv duration doesn not match subsonic duration (this should probably be a warn)" if left != right {
); event!(
Level::WARN,
"mpv duration {left:?} doesn not match subsonic duration {right:?}"
);
}
}
duration.unwrap_or(0.0) // placeholder duration.unwrap_or(0.0) // placeholder
} }