1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-17 02:59:03 +01:00

PlaylistParser: Check file extension case-insensitive

This commit is contained in:
Jonas Kvinge 2022-07-20 14:56:55 +02:00
parent 22edf7a2b3
commit 1bbaee605c

View File

@ -135,7 +135,7 @@ QString PlaylistParser::default_filter() const {
ParserBase *PlaylistParser::ParserForExtension(const Type type, const QString &suffix) const {
for (ParserBase *parser : parsers_) {
if (ParserIsSupported(type, parser) && parser->file_extensions().contains(suffix)) {
if (ParserIsSupported(type, parser) && parser->file_extensions().contains(suffix, Qt::CaseInsensitive)) {
return parser;
}
}