Regenerate all previews for files without one on start
All checks were successful
/ Build the server (push) Successful in 3m43s
All checks were successful
/ Build the server (push) Successful in 3m43s
This commit is contained in:
parent
14520fbce8
commit
3abef19b88
@ -63,8 +63,12 @@ public class DataValidator {
|
||||
errors++;
|
||||
}
|
||||
if (node.hasPreview && !node.previewFile.exists()) {
|
||||
log.warn("Missing preview file for node {}, regenerating", node.id);
|
||||
log.warn("Regenerated missing preview file for node {}", node.id);
|
||||
node.createThumbnail();
|
||||
} else if (!node.hasPreview) {
|
||||
node.createThumbnail();
|
||||
if (node.hasPreview)
|
||||
log.warn("Regenerated missing preview file for node {}, which was not marked with preview", node.id);
|
||||
}
|
||||
if (!node.file.exists()) {
|
||||
if (node.size == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user