Updated mp4ameta dependency

This commit is contained in:
Antoine Gersant 2020-09-21 19:28:17 -07:00
parent 341a03574b
commit 8c32d7351c
3 changed files with 5 additions and 5 deletions

6
Cargo.lock generated
View file

@ -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"

View file

@ -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"

View file

@ -260,7 +260,7 @@ fn read_mp4(path: &Path) -> Result<SongTags> {
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::<i32>().ok());