mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 22:22:31 +00:00
Fix popularimeter/parental advisory mixup
This commit is contained in:
parent
4c0b7c2273
commit
a5c66c5d36
2 changed files with 5 additions and 3 deletions
|
@ -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" => {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue