// Re-assess file type
Recording recording = _recordings.get(aFile);
LOG.debug("Recording changed " + recording);
+ recording.setFilesize(aFile.length());
+ _database.update(recording);
String dir = getDirectory(recording);
FileType type = getFileType(aFile);
String path = dir + "/" + getFilename(recording, type);
LOG.debug("file deleted " + aFile);
Recording recording = _recordings.get(aFile);
_recordings.remove(recording);
+ // mythtv will remove the recording from its database itself.
LOG.info("recording deleted " + recording);
String dir = getDirectory(recording);
for (FileType t: FileType.values()) {