fix lastmodified time not being read

This commit is contained in:
Mark 2024-08-26 20:35:05 +02:00
parent dd2cd8551d
commit 9f12c2e80a

View File

@ -222,7 +222,7 @@ fn main() {
DatabaseLocation {
rel_path: path.to_path_buf(),
},
match path.metadata() {
match song_path.metadata() {
Ok(v) => match v.modified() {
Ok(v) => if let Ok(time) = v.duration_since(SystemTime::UNIX_EPOCH) {
Some(time.as_secs())