Added coverart struct

This commit is contained in:
KD
2025-03-21 00:18:38 +00:00
parent ab3e519f53
commit 7f8649ee38
3 changed files with 32 additions and 14 deletions

View File

@@ -159,23 +159,13 @@ impl Song {
let filename_len = 10;
let file_extension = match typ {
types::types::Types::DefaultMusicExtension =>
{
types::types::Types::DefaultMusicExtension => {
String::from(constants::DEFAULTMUSICEXTENSION)
}
types::types::Types::WavExtension =>
{
String::from(constants::WAVEXTENSION)
}
types::types::Types::FlacExtension =>
{
String::from(constants::FLACEXTENSION)
}
types::types::Types::MPThreeExtension =>
{
String::from(constants::MPTHREEEXTENSION)
}
types::types::Types::WavExtension => String::from(constants::WAVEXTENSION),
types::types::Types::FlacExtension => String::from(constants::FLACEXTENSION),
types::types::Types::MPThreeExtension => String::from(constants::MPTHREEEXTENSION),
};
if randomize {