Fix path to metadata files for recordings, after the config has been copied to a new version number

This commit is contained in:
0xb00bface 2023-04-11 21:21:44 +02:00
parent 943203f755
commit f293f511f1
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ public class RecordingManager {
String json = Files.readString(file.toPath());
try {
Recording recording = adapter.fromJson(json);
recording.setMetaDataFile(file.getCanonicalPath());
loadRecording(recording);
} catch (Exception e) {
LOG.error("Couldn't load recording {}", file, e);
@ -152,6 +153,7 @@ public class RecordingManager {
}
// delete the meta data
Files.deleteIfExists(new File(recording.getMetaDataFile()).toPath());
// delete empty parent files