this is now a warn
This commit is contained in:
parent
fec04928b8
commit
6c01d94f69
1 changed files with 10 additions and 5 deletions
|
@ -382,11 +382,16 @@ mod imp {
|
|||
}
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(
|
||||
duration.map(|f| f as i64),
|
||||
self.song().as_ref().map(crate::PlaybinSong::duration),
|
||||
"mpv duration doesn not match subsonic duration (this should probably be a warn)"
|
||||
{
|
||||
let left = duration.map(|f| f as i64);
|
||||
let right = self.song().as_ref().map(crate::PlaybinSong::duration);
|
||||
if left != right {
|
||||
event!(
|
||||
Level::WARN,
|
||||
"mpv duration {left:?} doesn not match subsonic duration {right:?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
duration.unwrap_or(0.0) // placeholder
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue