diff options
Diffstat (limited to 'src/items.c')
| -rw-r--r-- | src/items.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/items.c b/src/items.c index 83c5368..730908e 100644 --- a/src/items.c +++ b/src/items.c @@ -267,15 +267,17 @@ int get_album_objects_count (const gchar *filename) { TXMLFile *xml; - int count; + int count, hidden; xml = xml_parser_load (filename); if (xml == NULL) return 0; count = xml_file_node_get_children_count (xml, "/gallery/items/item"); + hidden = xml_file_node_get_children_count (xml, "/gallery/items/item/hidden"); + xml_parser_close (xml); - return count; + return (count - hidden); } /* |
