Fix popularimeter/parental advisory mixup

This commit is contained in:
Serial 2022-02-18 23:33:20 -05:00
parent 4c0b7c2273
commit a5c66c5d36
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
2 changed files with 5 additions and 3 deletions

View file

@ -108,6 +108,7 @@ pub(super) fn parse_content(
id: &str,
version: Id3v2Version,
) -> Result<FrameValue> {
// TODO: POPM frame
Ok(match id {
// The ID was previously upgraded, but the content remains unchanged, so version is necessary
"APIC" => {

View file

@ -230,7 +230,7 @@ gen_map! (
"disk" => DiscTotal,
"trkn" => TrackNumber,
"trkn" => TrackTotal,
"rate" => LawRating,
"rtng" => ParentalAdvisory,
"\u{a9}day" => RecordingDate,
"----:com.apple.iTunes:ISRC" => ISRC,
"----:com.apple.iTunes:BARCODE" => Barcode,
@ -269,7 +269,7 @@ gen_map! (
"IPRO" => Producer,
"IPRT" | "ITRK" => TrackNumber,
"IFRM" => TrackTotal,
"IRTD" => LawRating,
"IRTD" => Popularimeter,
"ICRD" => RecordingDate,
"TLEN" => Length,
"ISRF" => OriginalMediaType,
@ -313,6 +313,7 @@ gen_map!(
"DISCTOTAL" | "TOTALDISCS" => DiscTotal,
"TRACKNUMBER" => TrackNumber,
"TRACKTOTAL" | "TOTALTRACKS" => TrackTotal,
"RATING" => Popularimeter,
"DATE" => RecordingDate,
"YEAR" => Year,
"ORIGINALDATE" => OriginalReleaseDate,
@ -471,7 +472,7 @@ gen_item_keys!(
TrackNumber,
TrackTotal,
Popularimeter,
LawRating,
ParentalAdvisory,
// Dates
RecordingDate,