diff --git a/src/meta.rs b/src/meta.rs index 59e6957..c448d2f 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -211,6 +211,12 @@ pub mod metadata { types::Type::Track => { vb.set_track(pre_value.parse().unwrap()); } + types::Type::TrackCount => { + vb.set_track_total(pre_value.parse().unwrap()); + } + types::Type::DiscCount => { + vb.set_disk_total(pre_value.parse().unwrap()); + } }; Ok(value.to_owned()) diff --git a/src/types.rs b/src/types.rs index c2bf9a9..26dbca1 100644 --- a/src/types.rs +++ b/src/types.rs @@ -7,6 +7,8 @@ pub enum Type { Date, Track, Disc, + TrackCount, + DiscCount, } pub mod access { @@ -21,6 +23,8 @@ pub mod access { super::Type::Date => Ok("DATE".to_owned()), super::Type::Track => Ok("TRACKNUMBER".to_owned()), super::Type::Disc => Ok("DISCNUMBER".to_owned()), + super::Type::TrackCount => Ok("TRACKCOUNT".to_owned()), + super::Type::DiscCount => Ok("DISCCOUNT".to_owned()), } } }