Skip to content

Commit bb5209b

Browse files
UnknownSuperficialNightSerial-ATA
authored andcommitted
feat: Add ReleaseCountry to ILST_MAP
1 parent b6d9dd6 commit bb5209b

File tree

1 file changed

+78
-77
lines changed

1 file changed

+78
-77
lines changed

lofty/src/tag/item.rs

Lines changed: 78 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -252,85 +252,86 @@ gen_map!(
252252
gen_map!(
253253
ILST_MAP;
254254

255-
"\u{a9}alb" => AlbumTitle,
256-
"----:com.apple.iTunes:DISCSUBTITLE" => SetSubtitle,
257-
"tvsh" => ShowName,
258-
"\u{a9}grp" => ContentGroup,
259-
"\u{a9}nam" => TrackTitle,
260-
"----:com.apple.iTunes:SUBTITLE" => TrackSubtitle,
261-
"\u{a9}wrk" => Work,
262-
"\u{a9}mvn" => Movement,
263-
"\u{a9}mvi" => MovementNumber,
264-
"\u{a9}mvc" => MovementTotal,
265-
"soal" => AlbumTitleSortOrder,
266-
"soaa" => AlbumArtistSortOrder,
267-
"sonm" => TrackTitleSortOrder,
268-
"soar" => TrackArtistSortOrder,
269-
"sosn" => ShowNameSortOrder,
270-
"soco" => ComposerSortOrder,
271-
"aART" => AlbumArtist,
272-
"----:com.apple.iTunes:ALBUMARTISTS" => AlbumArtists,
273-
"\u{a9}ART" => TrackArtist,
274-
"----:com.apple.iTunes:ARTISTS" => TrackArtists,
275-
"\u{a9}wrt" => Composer,
276-
"\u{a9}dir" => Director,
277-
"----:com.apple.iTunes:CONDUCTOR" => Conductor,
278-
"----:com.apple.iTunes:ENGINEER" => Engineer,
279-
"----:com.apple.iTunes:LYRICIST" => Lyricist,
280-
"----:com.apple.iTunes:DJMIXER" => MixDj,
281-
"----:com.apple.iTunes:MIXER" => MixEngineer,
282-
"----:com.apple.iTunes:PRODUCER" => Producer,
283-
"----:com.apple.iTunes:LABEL" => Label,
284-
"----:com.apple.iTunes:REMIXER" => Remixer,
285-
"disk" => DiscNumber,
286-
"disk" => DiscTotal,
287-
"trkn" => TrackNumber,
288-
"trkn" => TrackTotal,
289-
"rate" => Popularimeter,
290-
"rtng" => ParentalAdvisory,
291-
"\u{a9}day" => RecordingDate,
292-
"----:com.apple.iTunes:ORIGINALDATE" => OriginalReleaseDate, // TagLib v2.0
293-
"----:com.apple.iTunes:RELEASEDATE" => ReleaseDate,
294-
"----:com.apple.iTunes:ISRC" => Isrc,
295-
"----:com.apple.iTunes:BARCODE" => Barcode,
296-
"----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber,
297-
"cpil" => FlagCompilation,
298-
"pcst" => FlagPodcast,
299-
"----:com.apple.iTunes:MEDIA" => OriginalMediaType,
300-
"\u{a9}enc" => EncodedBy,
301-
"\u{a9}too" => EncoderSoftware,
302-
"\u{a9}gen" => Genre,
303-
"----:com.apple.iTunes:COLOR" => Color,
304-
"----:com.apple.iTunes:MOOD" => Mood,
305-
"tmpo" => IntegerBpm,
306-
"----:com.apple.iTunes:BPM" => Bpm,
307-
"----:com.apple.iTunes:initialkey" => InitialKey,
308-
"----:com.apple.iTunes:replaygain_album_gain" => ReplayGainAlbumGain,
309-
"----:com.apple.iTunes:replaygain_album_peak" => ReplayGainAlbumPeak,
310-
"----:com.apple.iTunes:replaygain_track_gain" => ReplayGainTrackGain,
311-
"----:com.apple.iTunes:replaygain_track_peak" => ReplayGainTrackPeak,
312-
"cprt" => CopyrightMessage,
313-
"----:com.apple.iTunes:LICENSE" => License,
314-
"ldes" => PodcastDescription,
315-
"catg" => PodcastSeriesCategory,
316-
"purl" => PodcastUrl,
317-
"egid" => PodcastGlobalUniqueId,
318-
"keyw" => PodcastKeywords,
319-
"\u{a9}cmt" => Comment,
320-
"desc" => Description,
321-
"----:com.apple.iTunes:LANGUAGE" => Language,
322-
"----:com.apple.iTunes:SCRIPT" => Script,
255+
"\u{a9}alb" => AlbumTitle,
256+
"----:com.apple.iTunes:DISCSUBTITLE" => SetSubtitle,
257+
"tvsh" => ShowName,
258+
"\u{a9}grp" => ContentGroup,
259+
"\u{a9}nam" => TrackTitle,
260+
"----:com.apple.iTunes:SUBTITLE" => TrackSubtitle,
261+
"\u{a9}wrk" => Work,
262+
"\u{a9}mvn" => Movement,
263+
"\u{a9}mvi" => MovementNumber,
264+
"\u{a9}mvc" => MovementTotal,
265+
"soal" => AlbumTitleSortOrder,
266+
"soaa" => AlbumArtistSortOrder,
267+
"sonm" => TrackTitleSortOrder,
268+
"soar" => TrackArtistSortOrder,
269+
"sosn" => ShowNameSortOrder,
270+
"soco" => ComposerSortOrder,
271+
"aART" => AlbumArtist,
272+
"----:com.apple.iTunes:ALBUMARTISTS" => AlbumArtists,
273+
"\u{a9}ART" => TrackArtist,
274+
"----:com.apple.iTunes:ARTISTS" => TrackArtists,
275+
"\u{a9}wrt" => Composer,
276+
"\u{a9}dir" => Director,
277+
"----:com.apple.iTunes:CONDUCTOR" => Conductor,
278+
"----:com.apple.iTunes:ENGINEER" => Engineer,
279+
"----:com.apple.iTunes:LYRICIST" => Lyricist,
280+
"----:com.apple.iTunes:DJMIXER" => MixDj,
281+
"----:com.apple.iTunes:MIXER" => MixEngineer,
282+
"----:com.apple.iTunes:PRODUCER" => Producer,
283+
"----:com.apple.iTunes:LABEL" => Label,
284+
"----:com.apple.iTunes:REMIXER" => Remixer,
285+
"disk" => DiscNumber,
286+
"disk" => DiscTotal,
287+
"trkn" => TrackNumber,
288+
"trkn" => TrackTotal,
289+
"rate" => Popularimeter,
290+
"rtng" => ParentalAdvisory,
291+
"\u{a9}day" => RecordingDate,
292+
"----:com.apple.iTunes:ORIGINALDATE" => OriginalReleaseDate, // TagLib v2.0
293+
"----:com.apple.iTunes:RELEASEDATE" => ReleaseDate,
294+
"----:com.apple.iTunes:ISRC" => Isrc,
295+
"----:com.apple.iTunes:BARCODE" => Barcode,
296+
"----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber,
297+
"cpil" => FlagCompilation,
298+
"pcst" => FlagPodcast,
299+
"----:com.apple.iTunes:MEDIA" => OriginalMediaType,
300+
"\u{a9}enc" => EncodedBy,
301+
"\u{a9}too" => EncoderSoftware,
302+
"\u{a9}gen" => Genre,
303+
"----:com.apple.iTunes:COLOR" => Color,
304+
"----:com.apple.iTunes:MOOD" => Mood,
305+
"tmpo" => IntegerBpm,
306+
"----:com.apple.iTunes:BPM" => Bpm,
307+
"----:com.apple.iTunes:initialkey" => InitialKey,
308+
"----:com.apple.iTunes:replaygain_album_gain" => ReplayGainAlbumGain,
309+
"----:com.apple.iTunes:replaygain_album_peak" => ReplayGainAlbumPeak,
310+
"----:com.apple.iTunes:replaygain_track_gain" => ReplayGainTrackGain,
311+
"----:com.apple.iTunes:replaygain_track_peak" => ReplayGainTrackPeak,
312+
"cprt" => CopyrightMessage,
313+
"----:com.apple.iTunes:LICENSE" => License,
314+
"ldes" => PodcastDescription,
315+
"catg" => PodcastSeriesCategory,
316+
"purl" => PodcastUrl,
317+
"egid" => PodcastGlobalUniqueId,
318+
"keyw" => PodcastKeywords,
319+
"\u{a9}cmt" => Comment,
320+
"desc" => Description,
321+
"----:com.apple.iTunes:LANGUAGE" => Language,
322+
"----:com.apple.iTunes:SCRIPT" => Script,
323323
// Don't know of any key for synchronized lyrics, nor if any apps actually support them, so
324324
// just treat both keys the same like ID3v2.
325-
"\u{a9}lyr" => Lyrics | UnsyncLyrics,
326-
"xid " => AppleXid,
327-
"----:com.apple.iTunes:MusicBrainz Track Id" => MusicBrainzRecordingId,
328-
"----:com.apple.iTunes:MusicBrainz Release Track Id" => MusicBrainzTrackId,
329-
"----:com.apple.iTunes:MusicBrainz Album Id" => MusicBrainzReleaseId,
330-
"----:com.apple.iTunes:MusicBrainz Release Group Id" => MusicBrainzReleaseGroupId,
331-
"----:com.apple.iTunes:MusicBrainz Artist Id" => MusicBrainzArtistId,
332-
"----:com.apple.iTunes:MusicBrainz Album Artist Id" => MusicBrainzReleaseArtistId,
333-
"----:com.apple.iTunes:MusicBrainz Work Id" => MusicBrainzWorkId
325+
"\u{a9}lyr" => Lyrics | UnsyncLyrics,
326+
"xid " => AppleXid,
327+
"----:com.apple.iTunes:MusicBrainz Track Id" => MusicBrainzRecordingId,
328+
"----:com.apple.iTunes:MusicBrainz Release Track Id" => MusicBrainzTrackId,
329+
"----:com.apple.iTunes:MusicBrainz Album Id" => MusicBrainzReleaseId,
330+
"----:com.apple.iTunes:MusicBrainz Release Group Id" => MusicBrainzReleaseGroupId,
331+
"----:com.apple.iTunes:MusicBrainz Artist Id" => MusicBrainzArtistId,
332+
"----:com.apple.iTunes:MusicBrainz Album Artist Id" => MusicBrainzReleaseArtistId,
333+
"----:com.apple.iTunes:MusicBrainz Work Id" => MusicBrainzWorkId,
334+
"----:com.apple.iTunes:MusicBrainz Album Release Country" => ReleaseCountry
334335
);
335336

336337
gen_map!(

0 commit comments

Comments
 (0)