Skip to content

Commit

Permalink
Add new item key and mappings for ASIN
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Apr 11, 2023
1 parent 571b0f8 commit fb8811d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tag/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ gen_map!(
"Track" => TrackTotal,
"Year" => Year,
"ISRC" => ISRC,
"ASIN" => ASIN,
"Barcode" => Barcode,
"CatalogNumber" => CatalogNumber,
"Compilation" => FlagCompilation,
Expand Down Expand Up @@ -170,6 +171,7 @@ gen_map!(
"TDRC" => RecordingDate,
"TDOR" => OriginalReleaseDate,
"TSRC" => ISRC,
"ASIN" => ASIN,
"BARCODE" => Barcode,
"CATALOGNUMBER" => CatalogNumber,
"WORK" => Work, // ID3v2.4: TXXX:WORK (Apple uses TIT1/ContentGroup, see GRP1/AppleId3v2ContentGroup for disambiguation)
Expand Down Expand Up @@ -259,6 +261,7 @@ gen_map!(
"rtng" => ParentalAdvisory,
"\u{a9}day" => RecordingDate,
"----:com.apple.iTunes:ISRC" => ISRC,
"----:com.apple.iTunes:ASIN" => ASIN,
"----:com.apple.iTunes:BARCODE" => Barcode,
"----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber,
"cpil" => FlagCompilation,
Expand Down Expand Up @@ -358,6 +361,7 @@ gen_map!(
"YEAR" => Year,
"ORIGINALDATE" => OriginalReleaseDate,
"ISRC" => ISRC,
"ASIN" => ASIN,
"BARCODE" => Barcode,
"CATALOGNUMBER" => CatalogNumber,
"COMPILATION" => FlagCompilation,
Expand Down Expand Up @@ -531,6 +535,7 @@ gen_item_keys!(

// Identifiers
ISRC,
ASIN,
Barcode,
CatalogNumber,
Work,
Expand Down

0 comments on commit fb8811d

Please sign in to comment.