vfmt: весь код в формате V master (без изменений логики)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c9184aeb2
commit
6161a7faaa
12 files changed
+405
-287
No files matched your search
+154
-32
@@ -151,47 +151,169 @@ enum Genre as u8 {
|
||||
anime = 145
|
||||
jpop = 146
|
||||
synthpop = 147
|
||||
|
||||
unknown = 255
|
||||
|
||||
unknown = 255
|
||||
}
|
||||
|
||||
const genres_name = [
|
||||
'Blues', 'Classic Rock', 'Country', 'Dance', 'Disco', 'Funk', 'Grunge',
|
||||
'Hip-Hop', 'Jazz', 'Metal', 'New Age', 'Oldies', 'Other', 'Pop', 'R&B',
|
||||
'Rap', 'Reggae', 'Rock', 'Techno', 'Industrial', 'Alternative', 'Ska',
|
||||
'Death Metal', 'Pranks', 'Soundtrack', 'Euro-Techno', 'Ambient',
|
||||
'Trip-Hop', 'Vocal', 'Jazz+Funk', 'Fusion', 'Trance', 'Classical',
|
||||
'Instrumental', 'Acid', 'House', 'Game', 'Sound Clip', 'Gospel',
|
||||
'Noise', 'AlternRock', 'Bass', 'Soul', 'Punk', 'Space', 'Meditative',
|
||||
'Instrumental Pop', 'Instrumental Rock', 'Ethnic', 'Gothic', 'Darkwave',
|
||||
'Techno-Industrial', 'Electronic', 'Pop-Folk', 'Eurodance', 'Dream',
|
||||
'Southern Rock', 'Comedy', 'Cult', 'Gangsta', 'Top 40', 'Christian Rap',
|
||||
'Pop/Funk', 'Jungle', 'Native American', 'Cabaret', 'New Wave',
|
||||
'Psychadelic', 'Rave', 'Showtunes', 'Trailer', 'Lo-Fi', 'Tribal',
|
||||
'Acid Punk', 'Acid Jazz', 'Polka', 'Retro', 'Musical', 'Rock & Roll',
|
||||
'Blues',
|
||||
'Classic Rock',
|
||||
'Country',
|
||||
'Dance',
|
||||
'Disco',
|
||||
'Funk',
|
||||
'Grunge',
|
||||
'Hip-Hop',
|
||||
'Jazz',
|
||||
'Metal',
|
||||
'New Age',
|
||||
'Oldies',
|
||||
'Other',
|
||||
'Pop',
|
||||
'R&B',
|
||||
'Rap',
|
||||
'Reggae',
|
||||
'Rock',
|
||||
'Techno',
|
||||
'Industrial',
|
||||
'Alternative',
|
||||
'Ska',
|
||||
'Death Metal',
|
||||
'Pranks',
|
||||
'Soundtrack',
|
||||
'Euro-Techno',
|
||||
'Ambient',
|
||||
'Trip-Hop',
|
||||
'Vocal',
|
||||
'Jazz+Funk',
|
||||
'Fusion',
|
||||
'Trance',
|
||||
'Classical',
|
||||
'Instrumental',
|
||||
'Acid',
|
||||
'House',
|
||||
'Game',
|
||||
'Sound Clip',
|
||||
'Gospel',
|
||||
'Noise',
|
||||
'AlternRock',
|
||||
'Bass',
|
||||
'Soul',
|
||||
'Punk',
|
||||
'Space',
|
||||
'Meditative',
|
||||
'Instrumental Pop',
|
||||
'Instrumental Rock',
|
||||
'Ethnic',
|
||||
'Gothic',
|
||||
'Darkwave',
|
||||
'Techno-Industrial',
|
||||
'Electronic',
|
||||
'Pop-Folk',
|
||||
'Eurodance',
|
||||
'Dream',
|
||||
'Southern Rock',
|
||||
'Comedy',
|
||||
'Cult',
|
||||
'Gangsta',
|
||||
'Top 40',
|
||||
'Christian Rap',
|
||||
'Pop/Funk',
|
||||
'Jungle',
|
||||
'Native American',
|
||||
'Cabaret',
|
||||
'New Wave',
|
||||
'Psychadelic',
|
||||
'Rave',
|
||||
'Showtunes',
|
||||
'Trailer',
|
||||
'Lo-Fi',
|
||||
'Tribal',
|
||||
'Acid Punk',
|
||||
'Acid Jazz',
|
||||
'Polka',
|
||||
'Retro',
|
||||
'Musical',
|
||||
'Rock & Roll',
|
||||
'Hard Rock',
|
||||
// Winamp
|
||||
'Folk', 'Folk-Rock', 'National Folk', 'Swing', 'Fast Fusion', 'Bebob',
|
||||
'Latin', 'Revival', 'Celtic', 'Bluegrass', 'Avantgarde', 'Gothic Rock',
|
||||
'Progressive Rock', 'Psychedelic Rock', 'Symphonic Rock', 'Slow Rock',
|
||||
'Big Band', 'Chorus', 'Easy Listening', 'Acoustic', 'Humour', 'Speech',
|
||||
'Chanson', 'Opera', 'Chamber Music', 'Sonata', 'Symphony', 'Booty Bass',
|
||||
'Primus', 'Porn Groove', 'Satire', 'Slow Jam', 'Club', 'Tango', 'Samba',
|
||||
'Folklore', 'Ballad', 'Power Ballad', 'Rhythmic Soul', 'Freestyle', 'Duet',
|
||||
'Punk Ballad', 'Drum Solo', 'A Cappella', 'Euro-House', 'Dance Hall',
|
||||
'Goa', 'Drum & Bass', 'Club-House', 'Hardcore', 'Terror', 'Indie',
|
||||
'BritPop', 'Negerpunk', 'Polsk Punk', 'Beat', 'Christian Gangsta',
|
||||
'Heavy Metal', 'Black Metal', 'Crossover', 'Contemporary Christian',
|
||||
'Christian Rock', 'Merengue', 'Salsa', 'Thrash Metal', 'Anime', 'JPop',
|
||||
'Synthpop'
|
||||
'Folk',
|
||||
'Folk-Rock',
|
||||
'National Folk',
|
||||
'Swing',
|
||||
'Fast Fusion',
|
||||
'Bebob',
|
||||
'Latin',
|
||||
'Revival',
|
||||
'Celtic',
|
||||
'Bluegrass',
|
||||
'Avantgarde',
|
||||
'Gothic Rock',
|
||||
'Progressive Rock',
|
||||
'Psychedelic Rock',
|
||||
'Symphonic Rock',
|
||||
'Slow Rock',
|
||||
'Big Band',
|
||||
'Chorus',
|
||||
'Easy Listening',
|
||||
'Acoustic',
|
||||
'Humour',
|
||||
'Speech',
|
||||
'Chanson',
|
||||
'Opera',
|
||||
'Chamber Music',
|
||||
'Sonata',
|
||||
'Symphony',
|
||||
'Booty Bass',
|
||||
'Primus',
|
||||
'Porn Groove',
|
||||
'Satire',
|
||||
'Slow Jam',
|
||||
'Club',
|
||||
'Tango',
|
||||
'Samba',
|
||||
'Folklore',
|
||||
'Ballad',
|
||||
'Power Ballad',
|
||||
'Rhythmic Soul',
|
||||
'Freestyle',
|
||||
'Duet',
|
||||
'Punk Ballad',
|
||||
'Drum Solo',
|
||||
'A Cappella',
|
||||
'Euro-House',
|
||||
'Dance Hall',
|
||||
'Goa',
|
||||
'Drum & Bass',
|
||||
'Club-House',
|
||||
'Hardcore',
|
||||
'Terror',
|
||||
'Indie',
|
||||
'BritPop',
|
||||
'Negerpunk',
|
||||
'Polsk Punk',
|
||||
'Beat',
|
||||
'Christian Gangsta',
|
||||
'Heavy Metal',
|
||||
'Black Metal',
|
||||
'Crossover',
|
||||
'Contemporary Christian',
|
||||
'Christian Rock',
|
||||
'Merengue',
|
||||
'Salsa',
|
||||
'Thrash Metal',
|
||||
'Anime',
|
||||
'JPop',
|
||||
'Synthpop',
|
||||
]
|
||||
|
||||
pub fn (genre Genre) str() string{
|
||||
pub fn (genre Genre) str() string {
|
||||
match genre {
|
||||
.unknown {
|
||||
return "Unknown"
|
||||
} else {
|
||||
return 'Unknown'
|
||||
}
|
||||
else {
|
||||
return genres_name[u8(genre)]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user