Adds support for multivalue w/ opus files
This commit is contained in:
parent
2ce035f787
commit
10946330a8
4 changed files with 7 additions and 4 deletions
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
BIN
test-data/multivalue/multivalue.opus
Normal file
BIN
test-data/multivalue/multivalue.opus
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue