X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix_swing%2Fgui%2Fbook%2FBookInfo.java;h=de57e848fce3569004134880aa4ad2ba5f5d265f;hp=b7dc509f0c423791dd2693774a61aff9021d675a;hb=42797eff5b7bf96a93bcd79ffa2ce62d256ef35d;hpb=77e5ecd4fc25c052340fc00cc974972b2323d3d1 diff --git a/src/be/nikiroo/fanfix_swing/gui/book/BookInfo.java b/src/be/nikiroo/fanfix_swing/gui/book/BookInfo.java index b7dc509..de57e84 100644 --- a/src/be/nikiroo/fanfix_swing/gui/book/BookInfo.java +++ b/src/be/nikiroo/fanfix_swing/gui/book/BookInfo.java @@ -122,7 +122,7 @@ public class BookInfo { /** * This item library cache state. * - * @return TRUE if it is present in the {@link GuiReader} cache + * @return TRUE if it is present in the {@link CacheLibrary} cache */ public boolean isCached() { return cached; @@ -131,7 +131,7 @@ public class BookInfo { /** * This item library cache state. * - * @param cached TRUE if it is present in the {@link GuiReader} cache + * @param cached TRUE if it is present in the {@link CacheLibrary} cache */ public void setCached(boolean cached) { this.cached = cached; @@ -238,7 +238,7 @@ public class BookInfo { int size = 0; try { - size = lib.getListBySource(source).size(); + size = lib.getList().filter(source, null, null).size(); } catch (IOException e) { } @@ -265,7 +265,7 @@ public class BookInfo { int size = 0; try { - size = lib.getListByAuthor(author).size(); + size = lib.getList().filter(null, author, null).size(); } catch (IOException e) { } @@ -292,11 +292,7 @@ public class BookInfo { int size = 0; try { - for (MetaData meta : lib.getList()) { - if (meta.getTags().contains(tag)) { - size++; - } - } + size = lib.getList().filter(null, null, tag).size(); } catch (IOException e) { }