fix: update lofty 0.18 API calls to lofty 0.23

- Imports reorganized: use lofty::prelude::*, lofty::tag::*, lofty::picture::*
- Picture::new_unchecked -> Picture::unchecked().pic_type().mime_type().build()
- set_year/remove_year -> set_date/remove_date with Timestamp
- ItemKey::Unknown("ISRC") -> ItemKey::Isrc
- save_to_path(path) -> save_to_path(path, WriteOptions::default())
- get_string/remove_key now take ItemKey by value
- Bump qbz-library crate lofty dep to 0.23

cc
This commit is contained in:
victorrhgap committed 2026-03-31 09:32:02 -06:00
1 parent e229bbd7c3
commit a99d558e37
7 files changed
+40 -29

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ walkdir = "2"
dirs = "5"
# Audio metadata
lofty = "0.18"
lofty = "0.23"
# Image processing (thumbnails)
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }