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:
parent
698dbeddf0
commit
6eb66f20b1
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user