Song: Handle MP2 in Song::FiletypeByDescription

This commit is contained in:
Jonas Kvinge 2023-10-21 05:07:25 +02:00
parent 7bf4ad3884
commit 2bb09cf575
1 changed files with 1 additions and 0 deletions

View File

@ -1095,6 +1095,7 @@ Song::FileType Song::FiletypeByDescription(const QString &text) {
else if (text.compare("Vorbis", Qt::CaseInsensitive) == 0) return FileType::OggVorbis;
else if (text.compare("Opus", Qt::CaseInsensitive) == 0) return FileType::OggOpus;
else if (text.compare("Speex", Qt::CaseInsensitive) == 0) return FileType::OggSpeex;
else if (text.compare("MPEG-1 Layer 2 (MP2)", Qt::CaseInsensitive) == 0) return FileType::MPEG;
else if (text.compare("MPEG-1 Layer 3 (MP3)", Qt::CaseInsensitive) == 0) return FileType::MPEG;
else if (text.compare("MPEG-4 AAC", Qt::CaseInsensitive) == 0) return FileType::MP4;
else if (text.compare("WMA", Qt::CaseInsensitive) == 0) return FileType::ASF;