diff --git a/src/library.cr b/src/library.cr index a5e22ed..d1d4fdd 100644 --- a/src/library.cr +++ b/src/library.cr @@ -154,6 +154,10 @@ class Title ary end + def size + @entries.size + @title_ids.size + end + # When downloading from MangaDex, the zip/cbz file would not be valid # before the download is completed. If we scan the zip file, # Entry.new would throw, so we use this method to check before diff --git a/src/views/index.ecr b/src/views/index.ecr index 15cb974..c90aaf9 100644 --- a/src/views/index.ecr +++ b/src/views/index.ecr @@ -33,7 +33,7 @@
<%= t.entries.size %> entries
+<%= t.size %> entries