ItemKey: Use spaces for alignment in gen_map!

This commit is contained in:
Serial 2022-10-20 23:26:46 -04:00
parent 8df3c01aa3
commit a50bfe911f
No known key found for this signature in database
GPG key ID: DA95198DC17C4568

View file

@ -66,9 +66,9 @@ gen_map!(
#[cfg(feature = "aiff_text_chunks")] #[cfg(feature = "aiff_text_chunks")]
AIFF_TEXT_MAP; AIFF_TEXT_MAP;
"NAME" => TrackTitle, "NAME" => TrackTitle,
"AUTH" => TrackArtist, "AUTH" => TrackArtist,
"(c) " => CopyrightMessage, "(c) " => CopyrightMessage,
"COMM" | "AUTH" => Comment "COMM" | "AUTH" => Comment
); );
@ -76,273 +76,273 @@ gen_map!(
#[cfg(feature = "ape")] #[cfg(feature = "ape")]
APE_MAP; APE_MAP;
"Album" => AlbumTitle, "Album" => AlbumTitle,
"DiscSubtitle" => SetSubtitle, "DiscSubtitle" => SetSubtitle,
"Grouping" => ContentGroup, "Grouping" => ContentGroup,
"Title" => TrackTitle, "Title" => TrackTitle,
"Subtitle" => TrackSubtitle, "Subtitle" => TrackSubtitle,
"ALBUMSORT" => AlbumTitleSortOrder, "ALBUMSORT" => AlbumTitleSortOrder,
"ALBUMARTISTSORT" => AlbumArtistSortOrder, "ALBUMARTISTSORT" => AlbumArtistSortOrder,
"TITLESORT" => TrackTitleSortOrder, "TITLESORT" => TrackTitleSortOrder,
"ARTISTSORT" => TrackArtistSortOrder, "ARTISTSORT" => TrackArtistSortOrder,
"Album Artist" | "ALBUMARTIST" => AlbumArtist, "Album Artist" | "ALBUMARTIST" => AlbumArtist,
"Artist" => TrackArtist, "Artist" => TrackArtist,
"Arranger" => Arranger, "Arranger" => Arranger,
"Writer" => Writer, "Writer" => Writer,
"Composer" => Composer, "Composer" => Composer,
"Conductor" => Conductor, "Conductor" => Conductor,
"Engineer" => Engineer, "Engineer" => Engineer,
"Lyricist" => Lyricist, "Lyricist" => Lyricist,
"DjMixer" => MixDj, "DjMixer" => MixDj,
"Mixer" => MixEngineer, "Mixer" => MixEngineer,
"Performer" => Performer, "Performer" => Performer,
"Producer" => Producer, "Producer" => Producer,
"Label" => Label, "Label" => Label,
"MixArtist" => Remixer, "MixArtist" => Remixer,
"Disc" => DiscNumber, "Disc" => DiscNumber,
"Disc" => DiscTotal, "Disc" => DiscTotal,
"Track" => TrackNumber, "Track" => TrackNumber,
"Track" => TrackTotal, "Track" => TrackTotal,
"Year" => Year, "Year" => Year,
"ISRC" => ISRC, "ISRC" => ISRC,
"Barcode" => Barcode, "Barcode" => Barcode,
"CatalogNumber" => CatalogNumber, "CatalogNumber" => CatalogNumber,
"Compilation" => FlagCompilation, "Compilation" => FlagCompilation,
"Media" => OriginalMediaType, "Media" => OriginalMediaType,
"EncodedBy" => EncodedBy, "EncodedBy" => EncodedBy,
"REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain, "REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain,
"REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak, "REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak,
"REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain, "REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain,
"REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak, "REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak,
"Genre" => Genre, "Genre" => Genre,
"Mood" => Mood, "Mood" => Mood,
"Copyright" => CopyrightMessage, "Copyright" => CopyrightMessage,
"Comment" => Comment, "Comment" => Comment,
"language" => Language, "language" => Language,
"Script" => Script, "Script" => Script,
"Lyrics" => Lyrics "Lyrics" => Lyrics
); );
gen_map! ( gen_map! (
#[cfg(feature = "id3v2")] #[cfg(feature = "id3v2")]
ID3V2_MAP; ID3V2_MAP;
"TALB" => AlbumTitle, "TALB" => AlbumTitle,
"TSST" => SetSubtitle, "TSST" => SetSubtitle,
"TIT1" | "GRP1" => ContentGroup, "TIT1" | "GRP1" => ContentGroup,
"TIT2" => TrackTitle, "TIT2" => TrackTitle,
"TIT3" => TrackSubtitle, "TIT3" => TrackSubtitle,
"TOAL" => OriginalAlbumTitle, "TOAL" => OriginalAlbumTitle,
"TOPE" => OriginalArtist, "TOPE" => OriginalArtist,
"TOLY" => OriginalLyricist, "TOLY" => OriginalLyricist,
"TSOA" => AlbumTitleSortOrder, "TSOA" => AlbumTitleSortOrder,
"TSO2" => AlbumArtistSortOrder, "TSO2" => AlbumArtistSortOrder,
"TSOT" => TrackTitleSortOrder, "TSOT" => TrackTitleSortOrder,
"TSOP" => TrackArtistSortOrder, "TSOP" => TrackArtistSortOrder,
"TSOC" => ComposerSortOrder, "TSOC" => ComposerSortOrder,
"TPE2" => AlbumArtist, "TPE2" => AlbumArtist,
"TPE1" => TrackArtist, "TPE1" => TrackArtist,
"TEXT" => Writer, "TEXT" => Writer,
"TCOM" => Composer, "TCOM" => Composer,
"TPE3" => Conductor, "TPE3" => Conductor,
"TIPL" => InvolvedPeople, "TIPL" => InvolvedPeople,
"TEXT" => Lyricist, "TEXT" => Lyricist,
"TMCL" => MusicianCredits, "TMCL" => MusicianCredits,
"IPRO" => Producer, "IPRO" => Producer,
"TPUB" => Publisher, "TPUB" => Publisher,
"TPUB" => Label, "TPUB" => Label,
"TRSN" => InternetRadioStationName, "TRSN" => InternetRadioStationName,
"TRSO" => InternetRadioStationOwner, "TRSO" => InternetRadioStationOwner,
"TPE4" => Remixer, "TPE4" => Remixer,
"TPOS" => DiscNumber, "TPOS" => DiscNumber,
"TPOS" => DiscTotal, "TPOS" => DiscTotal,
"TRCK" => TrackNumber, "TRCK" => TrackNumber,
"TRCK" => TrackTotal, "TRCK" => TrackTotal,
"POPM" => Popularimeter, "POPM" => Popularimeter,
"TDRC" => RecordingDate, "TDRC" => RecordingDate,
"TDOR" => OriginalReleaseDate, "TDOR" => OriginalReleaseDate,
"TSRC" => ISRC, "TSRC" => ISRC,
"MVNM" => Movement, "MVNM" => Movement,
"MVIN" => MovementIndex, "MVIN" => MovementIndex,
"TCMP" => FlagCompilation, "TCMP" => FlagCompilation,
"PCST" => FlagPodcast, "PCST" => FlagPodcast,
"TFLT" => FileType, "TFLT" => FileType,
"TOWN" => FileOwner, "TOWN" => FileOwner,
"TDTG" => TaggingTime, "TDTG" => TaggingTime,
"TLEN" => Length, "TLEN" => Length,
"TOFN" => OriginalFileName, "TOFN" => OriginalFileName,
"TMED" => OriginalMediaType, "TMED" => OriginalMediaType,
"TENC" => EncodedBy, "TENC" => EncodedBy,
"TSSE" => EncoderSoftware, "TSSE" => EncoderSoftware,
"TSSE" => EncoderSettings, "TSSE" => EncoderSettings,
"TDEN" => EncodingTime, "TDEN" => EncodingTime,
"REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain, "REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain,
"REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak, "REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak,
"REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain, "REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain,
"REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak, "REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak,
"WOAF" => AudioFileURL, "WOAF" => AudioFileURL,
"WOAS" => AudioSourceURL, "WOAS" => AudioSourceURL,
"WCOM" => CommercialInformationURL, "WCOM" => CommercialInformationURL,
"WCOP" => CopyrightURL, "WCOP" => CopyrightURL,
"WOAR" => TrackArtistURL, "WOAR" => TrackArtistURL,
"WORS" => RadioStationURL, "WORS" => RadioStationURL,
"WPAY" => PaymentURL, "WPAY" => PaymentURL,
"WPUB" => PublisherURL, "WPUB" => PublisherURL,
"TCON" => Genre, "TCON" => Genre,
"TKEY" => InitialKey, "TKEY" => InitialKey,
"TMOO" => Mood, "TMOO" => Mood,
"TBPM" => BPM, "TBPM" => BPM,
"TCOP" => CopyrightMessage, "TCOP" => CopyrightMessage,
"TDES" => PodcastDescription, "TDES" => PodcastDescription,
"TCAT" => PodcastSeriesCategory, "TCAT" => PodcastSeriesCategory,
"WFED" => PodcastURL, "WFED" => PodcastURL,
"TDRL" => PodcastReleaseDate, "TDRL" => PodcastReleaseDate,
"TGID" => PodcastGlobalUniqueID, "TGID" => PodcastGlobalUniqueID,
"TKWD" => PodcastKeywords, "TKWD" => PodcastKeywords,
"COMM" => Comment, "COMM" => Comment,
"TLAN" => Language, "TLAN" => Language,
"USLT" => Lyrics "USLT" => Lyrics
); );
gen_map! ( gen_map! (
#[cfg(feature = "mp4_ilst")] #[cfg(feature = "mp4_ilst")]
ILST_MAP; ILST_MAP;
"\u{a9}alb" => AlbumTitle, "\u{a9}alb" => AlbumTitle,
"----:com.apple.iTunes:DISCSUBTITLE" => SetSubtitle, "----:com.apple.iTunes:DISCSUBTITLE" => SetSubtitle,
"tvsh" => ShowName, "tvsh" => ShowName,
"\u{a9}grp" => ContentGroup, "\u{a9}grp" => ContentGroup,
"\u{a9}nam" => TrackTitle, "\u{a9}nam" => TrackTitle,
"----:com.apple.iTunes:SUBTITLE" => TrackSubtitle, "----:com.apple.iTunes:SUBTITLE" => TrackSubtitle,
"soal" => AlbumTitleSortOrder, "soal" => AlbumTitleSortOrder,
"soaa" => AlbumArtistSortOrder, "soaa" => AlbumArtistSortOrder,
"sonm" => TrackTitleSortOrder, "sonm" => TrackTitleSortOrder,
"soar" => TrackArtistSortOrder, "soar" => TrackArtistSortOrder,
"sosn" => ShowNameSortOrder, "sosn" => ShowNameSortOrder,
"soco" => ComposerSortOrder, "soco" => ComposerSortOrder,
"aART" => AlbumArtist, "aART" => AlbumArtist,
"\u{a9}ART" => TrackArtist, "\u{a9}ART" => TrackArtist,
"\u{a9}wrt" => Composer, "\u{a9}wrt" => Composer,
"----:com.apple.iTunes:CONDUCTOR" => Conductor, "----:com.apple.iTunes:CONDUCTOR" => Conductor,
"----:com.apple.iTunes:ENGINEER" => Engineer, "----:com.apple.iTunes:ENGINEER" => Engineer,
"----:com.apple.iTunes:LYRICIST" => Lyricist, "----:com.apple.iTunes:LYRICIST" => Lyricist,
"----:com.apple.iTunes:DJMIXER" => MixDj, "----:com.apple.iTunes:DJMIXER" => MixDj,
"----:com.apple.iTunes:MIXER" => MixEngineer, "----:com.apple.iTunes:MIXER" => MixEngineer,
"----:com.apple.iTunes:PRODUCER" => Producer, "----:com.apple.iTunes:PRODUCER" => Producer,
"----:com.apple.iTunes:LABEL" => Label, "----:com.apple.iTunes:LABEL" => Label,
"----:com.apple.iTunes:REMIXER" => Remixer, "----:com.apple.iTunes:REMIXER" => Remixer,
"disk" => DiscNumber, "disk" => DiscNumber,
"disk" => DiscTotal, "disk" => DiscTotal,
"trkn" => TrackNumber, "trkn" => TrackNumber,
"trkn" => TrackTotal, "trkn" => TrackTotal,
"rate" => Popularimeter, "rate" => Popularimeter,
"rtng" => ParentalAdvisory, "rtng" => ParentalAdvisory,
"\u{a9}day" => RecordingDate, "\u{a9}day" => RecordingDate,
"----:com.apple.iTunes:ISRC" => ISRC, "----:com.apple.iTunes:ISRC" => ISRC,
"----:com.apple.iTunes:BARCODE" => Barcode, "----:com.apple.iTunes:BARCODE" => Barcode,
"----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber, "----:com.apple.iTunes:CATALOGNUMBER" => CatalogNumber,
"cpil" => FlagCompilation, "cpil" => FlagCompilation,
"pcst" => FlagPodcast, "pcst" => FlagPodcast,
"----:com.apple.iTunes:MEDIA" => OriginalMediaType, "----:com.apple.iTunes:MEDIA" => OriginalMediaType,
"\u{a9}enc" => EncodedBy, "\u{a9}enc" => EncodedBy,
"\u{a9}too" => EncoderSoftware, "\u{a9}too" => EncoderSoftware,
"\u{a9}gen" => Genre, "\u{a9}gen" => Genre,
"----:com.apple.iTunes:MOOD" => Mood, "----:com.apple.iTunes:MOOD" => Mood,
"tmpo" => BPM, "tmpo" => BPM,
"cprt" => CopyrightMessage, "cprt" => CopyrightMessage,
"----:com.apple.iTunes:LICENSE" => License, "----:com.apple.iTunes:LICENSE" => License,
"ldes" => PodcastDescription, "ldes" => PodcastDescription,
"catg" => PodcastSeriesCategory, "catg" => PodcastSeriesCategory,
"purl" => PodcastURL, "purl" => PodcastURL,
"egid" => PodcastGlobalUniqueID, "egid" => PodcastGlobalUniqueID,
"keyw" => PodcastKeywords, "keyw" => PodcastKeywords,
"\u{a9}cmt" => Comment, "\u{a9}cmt" => Comment,
"desc" => Description, "desc" => Description,
"----:com.apple.iTunes:LANGUAGE" => Language, "----:com.apple.iTunes:LANGUAGE" => Language,
"----:com.apple.iTunes:SCRIPT" => Script, "----:com.apple.iTunes:SCRIPT" => Script,
"\u{a9}lyr" => Lyrics "\u{a9}lyr" => Lyrics
); );
gen_map! ( gen_map! (
#[cfg(feature = "riff_info_list")] #[cfg(feature = "riff_info_list")]
RIFF_INFO_MAP; RIFF_INFO_MAP;
"IPRD" => AlbumTitle, "IPRD" => AlbumTitle,
"INAM" => TrackTitle, "INAM" => TrackTitle,
"IART" => TrackArtist, "IART" => TrackArtist,
"IWRI" => Writer, "IWRI" => Writer,
"IMUS" => Composer, "IMUS" => Composer,
"IPRO" => Producer, "IPRO" => Producer,
"IPRT" | "ITRK" => TrackNumber, "IPRT" | "ITRK" => TrackNumber,
"IFRM" => TrackTotal, "IFRM" => TrackTotal,
"IRTD" => Popularimeter, "IRTD" => Popularimeter,
"ICRD" => RecordingDate, "ICRD" => RecordingDate,
"TLEN" => Length, "TLEN" => Length,
"ISRF" => OriginalMediaType, "ISRF" => OriginalMediaType,
"ITCH" => EncodedBy, "ITCH" => EncodedBy,
"ISFT" => EncoderSoftware, "ISFT" => EncoderSoftware,
"IGNR" => Genre, "IGNR" => Genre,
"ICOP" => CopyrightMessage, "ICOP" => CopyrightMessage,
"ICMT" => Comment, "ICMT" => Comment,
"ILNG" => Language "ILNG" => Language
); );
gen_map!( gen_map!(
#[cfg(feature = "vorbis_comments")] #[cfg(feature = "vorbis_comments")]
VORBIS_MAP; VORBIS_MAP;
"ALBUM" => AlbumTitle, "ALBUM" => AlbumTitle,
"DISCSUBTITLE" => SetSubtitle, "DISCSUBTITLE" => SetSubtitle,
"GROUPING" => ContentGroup, "GROUPING" => ContentGroup,
"TITLE" => TrackTitle, "TITLE" => TrackTitle,
"SUBTITLE" => TrackSubtitle, "SUBTITLE" => TrackSubtitle,
"ALBUMSORT" => AlbumTitleSortOrder, "ALBUMSORT" => AlbumTitleSortOrder,
"ALBUMARTISTSORT" => AlbumArtistSortOrder, "ALBUMARTISTSORT" => AlbumArtistSortOrder,
"TITLESORT" => TrackTitleSortOrder, "TITLESORT" => TrackTitleSortOrder,
"ARTISTSORT" => TrackArtistSortOrder, "ARTISTSORT" => TrackArtistSortOrder,
"ALBUMARTIST" => AlbumArtist, "ALBUMARTIST" => AlbumArtist,
"ARTIST" => TrackArtist, "ARTIST" => TrackArtist,
"ARRANGER" => Arranger, "ARRANGER" => Arranger,
"AUTHOR" | "WRITER" => Writer, "AUTHOR" | "WRITER" => Writer,
"COMPOSER" => Composer, "COMPOSER" => Composer,
"CONDUCTOR" => Conductor, "CONDUCTOR" => Conductor,
"ENGINEER" => Engineer, "ENGINEER" => Engineer,
"LYRICIST" => Lyricist, "LYRICIST" => Lyricist,
"DJMIXER" => MixDj, "DJMIXER" => MixDj,
"MIXER" => MixEngineer, "MIXER" => MixEngineer,
"PERFORMER" => Performer, "PERFORMER" => Performer,
"PRODUCER" => Producer, "PRODUCER" => Producer,
"PUBLISHER" => Publisher, "PUBLISHER" => Publisher,
"LABEL" => Label, "LABEL" => Label,
"REMIXER" => Remixer, "REMIXER" => Remixer,
"DISCNUMBER" => DiscNumber, "DISCNUMBER" => DiscNumber,
"DISCTOTAL" | "TOTALDISCS" => DiscTotal, "DISCTOTAL" | "TOTALDISCS" => DiscTotal,
"TRACKNUMBER" => TrackNumber, "TRACKNUMBER" => TrackNumber,
"TRACKTOTAL" | "TOTALTRACKS" => TrackTotal, "TRACKTOTAL" | "TOTALTRACKS" => TrackTotal,
"RATING" => Popularimeter, "RATING" => Popularimeter,
"DATE" => RecordingDate, "DATE" => RecordingDate,
"YEAR" => Year, "YEAR" => Year,
"ORIGINALDATE" => OriginalReleaseDate, "ORIGINALDATE" => OriginalReleaseDate,
"ISRC" => ISRC, "ISRC" => ISRC,
"CATALOGNUMBER" => CatalogNumber, "CATALOGNUMBER" => CatalogNumber,
"COMPILATION" => FlagCompilation, "COMPILATION" => FlagCompilation,
"MEDIA" => OriginalMediaType, "MEDIA" => OriginalMediaType,
"ENCODED-BY" => EncodedBy, "ENCODED-BY" => EncodedBy,
"ENCODER" => EncoderSoftware, "ENCODER" => EncoderSoftware,
"ENCODING" | "ENCODERSETTINGS" => EncoderSettings, "ENCODING" | "ENCODERSETTINGS" => EncoderSettings,
"REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain, "REPLAYGAIN_ALBUM_GAIN" => ReplayGainAlbumGain,
"REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak, "REPLAYGAIN_ALBUM_PEAK" => ReplayGainAlbumPeak,
"REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain, "REPLAYGAIN_TRACK_GAIN" => ReplayGainTrackGain,
"REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak, "REPLAYGAIN_TRACK_PEAK" => ReplayGainTrackPeak,
"GENRE" => Genre, "GENRE" => Genre,
"MOOD" => Mood, "MOOD" => Mood,
"BPM" => BPM, "BPM" => BPM,
"COPYRIGHT" => CopyrightMessage, "COPYRIGHT" => CopyrightMessage,
"LICENSE" => License, "LICENSE" => License,
"COMMENT" => Comment, "COMMENT" => Comment,
"LANGUAGE" => Language, "LANGUAGE" => Language,
"SCRIPT" => Script, "SCRIPT" => Script,
"LYRICS" => Lyrics "LYRICS" => Lyrics
); );
macro_rules! gen_item_keys { macro_rules! gen_item_keys {