mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-08 16:17:20 +00:00
Add .opus and .oga files as song formats
This commit is contained in:
parent
82e835fbc2
commit
85fcec2fb5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user