1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Only show webms

This commit is contained in:
kelteseth 2018-08-25 01:50:37 +02:00
parent 698dbeddf0
commit 6eb66f20b1

View File

@ -116,17 +116,17 @@ void InstalledListModel::loadScreens()
continue;
//Some settings dont have a file type
if (!obj.contains("type")) {
QString fileEnding;
if (obj.contains("file")) {
QString fileEnding = obj.value("file").toString();
if (fileEnding.endsWith(".mp4") || fileEnding.endsWith(".vp9") || fileEnding.endsWith(".webm")) {
fileEnding = obj.value("file").toString();
if (!obj.contains("type")) {
obj.insert("type", "video");
}
}
}
if (fileEnding.endsWith(".webm"))
emit addInstalledItem(obj, item.baseName());
}
}
emit installedLoadingFinished();
});
}