Add .opus and .oga files as song formats

This commit is contained in:
VictorienXP 2020-04-19 18:26:11 +02:00 committed by John Preston
parent 82e835fbc2
commit 85fcec2fb5
1 changed files with 3 additions and 0 deletions

View File

@ -552,6 +552,7 @@ bool FileLoadTask::CheckForSong(
qstr("audio/aac"),
qstr("audio/ogg"),
qstr("audio/flac"),
qstr("audio/opus"),
};
static const auto extensions = {
qstr(".mp3"),
@ -559,6 +560,8 @@ bool FileLoadTask::CheckForSong(
qstr(".aac"),
qstr(".ogg"),
qstr(".flac"),
qstr(".opus"),
qstr(".oga"),
};
if (!filepath.isEmpty()
&& !CheckMimeOrExtensions(