Fix titles which have just a title.tmd and no tmd.[version]

This commit is contained in:
Maschell 2022-02-01 23:48:30 +01:00
parent 623b8a6c9d
commit 385ddb3bdc

View File

@ -29,14 +29,7 @@ public class FuseContainerWrapper {
Map<String, FuseContainer> result = new HashMap<>();
if (c.exists() && c.isDirectory()) {
File[] tmd = c.listFiles(f -> f.isFile() && f.getName().startsWith("tmd."));
if (tmd != null && tmd.length > 0) {
result.put(prefix + c.getName(), new RemoteLocalBackupNUSTitleContainer(parent, c));
return result;
}
}
if (c.exists() && c.isDirectory()) {
File[] tmd = c.listFiles(f -> f.isFile() && f.getName().equals("title.tmd"));
File[] tmd = c.listFiles(f -> f.isFile() && (f.getName().startsWith("tmd.") || f.getName().startsWith("title.tmd")));
if (tmd != null && tmd.length > 0) {
// In case there is a tmd file