Allow search results

This commit is contained in:
Knut Forkalsrud 2025-02-04 17:10:24 -08:00
parent efdd2b6ea9
commit 23fb5e4c68

View file

@ -340,10 +340,9 @@ public class AlbumServlet
item.put("name", e.getName());
item.put("type", e.getType());
if ("dir".equals(e.getType())) {
DirectoryEntry de = (DirectoryEntry)e;
if (de.getEarliest() != null) {
if (e.getEarliest() != null) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
item.put("earliest", sdf.format(de.getEarliest()));
item.put("earliest", sdf.format(e.getEarliest()));
}
}
Thumbnail thumb = e.getThumbnail();