Skip to main content

lofty/id3/v1/
constants.rs

1pub(crate) const ID3V1_TAG_MARKER: [u8; 3] = *b"TAG";
2
3/// All possible genres for ID3v1
4pub const GENRES: [&str; 192] = [
5	"Blues",
6	"Classic rock",
7	"Country",
8	"Dance",
9	"Disco",
10	"Funk",
11	"Grunge",
12	"Hip-Hop",
13	"Jazz",
14	"Metal",
15	"New Age",
16	"Oldies",
17	"Other",
18	"Pop",
19	"R&B",
20	"Rap",
21	"Reggae",
22	"Rock",
23	"Techno",
24	"Industrial",
25	"Alternative",
26	"Ska",
27	"Death metal",
28	"Pranks",
29	"Soundtrack",
30	"Euro-Techno",
31	"Ambient",
32	"Trip-Hop",
33	"Vocal",
34	"Jazz & Funk",
35	"Fusion",
36	"Trance",
37	"Classical",
38	"Instrumental",
39	"Acid",
40	"House",
41	"Game",
42	"Sound clip",
43	"Gospel",
44	"Noise",
45	"Alternative Rock",
46	"Bass",
47	"Soul",
48	"Punk",
49	"Space",
50	"Meditative",
51	"Instrumental Pop",
52	"Instrumental Rock",
53	"Ethnic",
54	"Gothic",
55	"Darkwave",
56	"Techno-Industrial",
57	"Electronic",
58	"Pop-Folk",
59	"Eurodance",
60	"Dream",
61	"Southern Rock",
62	"Comedy",
63	"Cult",
64	"Gangsta",
65	"Top 40",
66	"Christian Rap",
67	"Pop/Funk",
68	"Jungle",
69	"Native US",
70	"Cabaret",
71	"New Wave",
72	"Psychedelic",
73	"Rave",
74	"Show tunes",
75	"Trailer",
76	"Lo-Fi",
77	"Tribal",
78	"Acid Punk",
79	"Acid Jazz",
80	"Polka",
81	"Retro",
82	"Musical",
83	"Rock \u{2019}n\u{2019} Roll",
84	"Hard Rock",
85	"Folk",
86	"Folk-Rock",
87	"National Folk",
88	"Swing",
89	"Fast Fusion",
90	"Bebop",
91	"Latin",
92	"Revival",
93	"Celtic",
94	"Bluegrass",
95	"Avantgarde",
96	"Gothic Rock",
97	"Progressive Rock",
98	"Psychedelic Rock",
99	"Symphonic Rock",
100	"Slow rock",
101	"Big Band",
102	"Chorus",
103	"Easy Listening",
104	"Acoustic",
105	"Humour",
106	"Speech",
107	"Chanson",
108	"Opera",
109	"Chamber music",
110	"Sonata",
111	"Symphony",
112	"Booty bass",
113	"Primus",
114	"Porn groove",
115	"Satire",
116	"Slow jam",
117	"Club",
118	"Tango",
119	"Samba",
120	"Folklore",
121	"Ballad",
122	"Power Ballad",
123	"Rhythmic Soul",
124	"Freestyle",
125	"Duet",
126	"Punk Rock",
127	"Drum Solo",
128	"A cappella",
129	"Euro-House",
130	"Dance Hall",
131	"Goa music",
132	"Drum & Bass",
133	"Club-House",
134	"Hardcore Techno",
135	"Terror",
136	"Indie",
137	"BritPop",
138	"Negerpunk",
139	"Polsk Punk",
140	"Beat",
141	"Christian Gangsta Rap",
142	"Heavy Metal",
143	"Black Metal",
144	"Crossover",
145	"Contemporary Christian",
146	"Christian rock",
147	"Merengue",
148	"Salsa",
149	"Thrash Metal",
150	"Anime",
151	"Jpop",
152	"Synthpop",
153	"Abstract",
154	"Art Rock",
155	"Baroque",
156	"Bhangra",
157	"Big beat",
158	"Breakbeat",
159	"Chillout",
160	"Downtempo",
161	"Dub",
162	"EBM",
163	"Eclectic",
164	"Electro",
165	"Electroclash",
166	"Emo",
167	"Experimental",
168	"Garage",
169	"Global",
170	"IDM",
171	"Illbient",
172	"Industro-Goth",
173	"Jam Band",
174	"Krautrock",
175	"Leftfield",
176	"Lounge",
177	"Math Rock",
178	"New Romantic",
179	"Nu-Breakz",
180	"Post-Punk",
181	"Post-Rock",
182	"Psytrance",
183	"Shoegaze",
184	"Space Rock",
185	"Trop Rock",
186	"World Music",
187	"Neoclassical",
188	"Audiobook",
189	"Audio theatre",
190	"Neue Deutsche Welle",
191	"Podcast",
192	"Indie-Rock",
193	"G-Funk",
194	"Dubstep",
195	"Garage Rock",
196	"Psybient",
197];
198
199use crate::tag::ItemKey;
200pub(crate) const VALID_ITEMKEYS: [ItemKey; 8] = [
201	ItemKey::TrackTitle,
202	ItemKey::TrackArtist,
203	ItemKey::AlbumTitle,
204	ItemKey::Comment,
205	ItemKey::TrackNumber,
206	ItemKey::Genre,
207	// These two are used identically. ID3v1 is the only format that *only* supports year.
208	ItemKey::Year,
209	ItemKey::RecordingDate,
210];