Fix titles without a FST

This commit is contained in:
Maschell 2019-06-05 21:17:11 +02:00
parent 56840994fd
commit e3be1f5a33

View File

@ -53,7 +53,7 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
// If the tmd has only one content file, it has not FST. We have to create our own FST. // If the tmd has only one content file, it has not FST. We have to create our own FST.
Content c = title.getTMD().getAllContents().values().stream().collect(Collectors.toList()).get(0); Content c = title.getTMD().getAllContents().values().stream().collect(Collectors.toList()).get(0);
FSTEntry root = FSTEntry.getRootFSTEntry(); FSTEntry root = FSTEntry.getRootFSTEntry();
FSTEntry.createFSTEntry(root, "data.bin", c); // Will add this title root. root.addChildren(FSTEntry.createFSTEntry(root, "data.bin", c));
rootEntry = root; rootEntry = root;
} else { } else {
throw new IOException("No FST root entry was found"); throw new IOException("No FST root entry was found");