Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more date/year mappings from MusicBrainz Picard #326

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/tag/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ gen_map!(
"Track" => TrackNumber,
"Track" => TrackTotal,
"Year" => Year,
"ORIGINALYEAR" => OriginalReleaseDate,
"RELEASEDATE" => PodcastReleaseDate,
"ISRC" => Isrc,
"Barcode" => Barcode,
"CatalogNumber" => CatalogNumber,
Expand Down Expand Up @@ -262,7 +264,8 @@ gen_map!(
"rate" => Popularimeter,
"rtng" => ParentalAdvisory,
"\u{a9}day" => RecordingDate,
"----:com.apple.iTunes:ORIGINALDATE" => OriginalReleaseDate,
"----:com.apple.iTunes:ORIGINALDATE" => OriginalReleaseDate, // TagLib v2.0
"----:com.apple.iTunes:RELEASEDATE" => PodcastReleaseDate,
"----:com.apple.iTunes:ISRC" => Isrc,
"----:com.apple.iTunes:BARCODE" => Barcode,
"----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber,
Expand Down Expand Up @@ -365,6 +368,8 @@ gen_map!(
"DATE" => RecordingDate,
"YEAR" => Year,
"ORIGINALDATE" => OriginalReleaseDate,
"ORIGINALYEAR" => OriginalReleaseDate,
"RELEASEDATE" => PodcastReleaseDate,
"ISRC" => Isrc,
"BARCODE" => Barcode,
"CATALOGNUMBER" => CatalogNumber,
Expand Down Expand Up @@ -540,8 +545,18 @@ gen_item_keys!(
ParentalAdvisory,

// Dates
/// Recording date
///
/// <https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#date-10>
RecordingDate,

/// Year
Year,

/// Original release date/year
///
/// <https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#original-release-date-1>
/// <https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#original-release-year-1>
OriginalReleaseDate,

// Identifiers
Expand Down Expand Up @@ -654,6 +669,9 @@ gen_item_keys!(
PodcastDescription,
PodcastSeriesCategory,
PodcastURL,
/// Release date (of the podcast episode)
///
/// <https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#release-date-10>
PodcastReleaseDate,
PodcastGlobalUniqueID,
PodcastKeywords,
Expand Down