From 8c32d7351c7d074d8249ddebca79e3929bd3fc97 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Mon, 21 Sep 2020 19:28:17 -0700 Subject: [PATCH] Updated mp4ameta dependency --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- src/index/metadata.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e69719..e05afbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1299,7 +1299,7 @@ dependencies = [ [[package]] name = "mp4ameta" -version = "0.2.2" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1593,7 +1593,7 @@ dependencies = [ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "metaflac 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "mp3-duration 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "mp4ameta 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "mp4ameta 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "opus_headers 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "pbkdf2 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3068,7 +3068,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum mio-extras 2.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" "checksum mp3-duration 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "348bdc7300502f0801e5b57c448815713cd843b744ef9bda252a2698fdf90a0f" -"checksum mp4ameta 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2b0de7480e6605e303c127e236712f866ed1b748de03908fd1f584d60d135878" +"checksum mp4ameta 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d89d19e381a2fd7aeaa2ad50e10c8e5c6ab4a4e5310162fa5161c1333bc2e57d" "checksum native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "2b0d88c06fe90d5ee94048ba40409ef1d9315d86f6f38c2efdaad4fb50c58b2d" "checksum net2 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)" = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7" "checksum notify 4.0.15 (registry+https://github.com/rust-lang/crates.io-index)" = "80ae4a7688d1fab81c5bf19c64fc8db920be8d519ce6336ed4e7efe024724dbd" diff --git a/Cargo.toml b/Cargo.toml index faa7dc6..d14fd92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ lewton = "0.10.1" log = "0.4.5" metaflac = "0.2.3" mp3-duration = "0.1.9" -mp4ameta = "0.2.2" +mp4ameta = "0.4.0" opus_headers = "0.1.2" pbkdf2 = "0.4" rand = "0.7" diff --git a/src/index/metadata.rs b/src/index/metadata.rs index ecb70c3..40e283c 100644 --- a/src/index/metadata.rs +++ b/src/index/metadata.rs @@ -260,7 +260,7 @@ fn read_mp4(path: &Path) -> Result { tags.album = tag.album().map(|v| v.to_string()); tags.title = tag.title().map(|v| v.to_string()); tags.duration = tag.duration().map(|v| v as u32); - tags.disc_number = tag.disk_number().0.and_then(|d| Some(d as u32)); + tags.disc_number = tag.disc_number().0.and_then(|d| Some(d as u32)); tags.track_number = tag.track_number().0.and_then(|d| Some(d as u32)); tags.year = tag.year().and_then(|v| v.parse::().ok());