mirror of https://github.com/procxx/kepka.git
Fix mime type usage for some MP3 files.
They had "audio/mpeg3" instead of "audio/mp3". Fixes #5392.
This commit is contained in:
parent
f56d80236e
commit
c8a05137f4
|
@ -46,12 +46,14 @@ QString MimeType::name() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
MimeType MimeTypeForName(const QString &mime) {
|
MimeType MimeTypeForName(const QString &mime) {
|
||||||
if (mime == qsl("image/webp")) {
|
if (mime == qstr("image/webp")) {
|
||||||
return MimeType(MimeType::Known::WebP);
|
return MimeType(MimeType::Known::WebP);
|
||||||
} else if (mime == qsl("application/x-tdesktop-theme")) {
|
} else if (mime == qstr("application/x-tdesktop-theme")) {
|
||||||
return MimeType(MimeType::Known::TDesktopTheme);
|
return MimeType(MimeType::Known::TDesktopTheme);
|
||||||
} else if (mime == qsl("application/x-tdesktop-palette")) {
|
} else if (mime == qstr("application/x-tdesktop-palette")) {
|
||||||
return MimeType(MimeType::Known::TDesktopPalette);
|
return MimeType(MimeType::Known::TDesktopPalette);
|
||||||
|
} else if (mime == qstr("audio/mpeg3")) {
|
||||||
|
return MimeType(QMimeDatabase().mimeTypeForName("audio/mp3"));
|
||||||
}
|
}
|
||||||
return MimeType(QMimeDatabase().mimeTypeForName(mime));
|
return MimeType(QMimeDatabase().mimeTypeForName(mime));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue