Adds support for multivalue w/ opus files

This commit is contained in:
Antoine Gersant 2025-02-04 22:19:05 -08:00
parent 2ce035f787
commit 10946330a8
4 changed files with 7 additions and 4 deletions

3
Cargo.lock generated
View file

@ -1635,8 +1635,7 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]] [[package]]
name = "opus_headers" name = "opus_headers"
version = "0.1.2" version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/agersant/opus_headers?branch=multivalue#9850b2d369b12794ad62d4c2bf61e4645183ff49"
checksum = "afbb993947f111397c2bc536944f8dac7f54a4e73383d478efe1990b56404b60"
[[package]] [[package]]
name = "orion" name = "orion"

View file

@ -36,7 +36,8 @@ nohash-hasher = "0.2.0"
notify = { version = "6.1.1", default-features = false } notify = { version = "6.1.1", default-features = false }
notify-debouncer-full = { version = "0.3.1", default-features = false } notify-debouncer-full = { version = "0.3.1", default-features = false }
num_cpus = "1.14.0" num_cpus = "1.14.0"
opus_headers = "0.1.2" # TODO upstream PR: https://github.com/yboettcher/opus_headers/pull/7
opus_headers = { git = "https://github.com/agersant/opus_headers", branch = "multivalue" }
pbkdf2 = "0.11" pbkdf2 = "0.11"
rand = "0.8" rand = "0.8"
rayon = "1.10.0" rayon = "1.10.0"

View file

@ -429,7 +429,10 @@ fn reads_multivalue_fields() {
expected_with_duration expected_with_duration
); );
// TODO Test m4a support (likely working). Pending https://tickets.metabrainz.org/browse/PICARD-3029 // TODO Test m4a support (likely working). Pending https://tickets.metabrainz.org/browse/PICARD-3029
// TODO Opus support. assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.opus")).unwrap(),
expected_without_duration
);
assert_eq!( assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.ape")).unwrap(), read_metadata(Path::new("test-data/multivalue/multivalue.ape")).unwrap(),
expected_without_duration expected_without_duration

Binary file not shown.