summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
Diffstat (limited to 'items.c')
-rw-r--r--items.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/items.c b/items.c
index 413630f..5e4bf4a 100644
--- a/items.c
+++ b/items.c
@@ -87,6 +87,8 @@ parse_album_xml (const char *filename, TAlbum *index)
index->meta_description = xml_file_get_node_value (xml, "/gallery/general/meta/description/text()");
index->meta_keywords = xml_file_get_node_value (xml, "/gallery/general/meta/keywords/text()");
+ index->nofullsize = xml_file_get_node_present (xml, "/gallery/general/nofullsize");
+
/* Section Items */
count = xml_file_node_get_children_count (xml, "/gallery/items/*");
#ifdef __DEBUG_ALL__
@@ -136,7 +138,11 @@ parse_album_xml (const char *filename, TAlbum *index)
}
s = g_strdup_printf ("/gallery/items/*[%d]/nofullsize", i + 1);
- item->nofullsize = (xml_file_get_node_present (xml, s) || item->path == NULL);
+ item->force_nofullsize = (xml_file_get_node_present (xml, s) || item->path == NULL);
+ g_free (s);
+
+ s = g_strdup_printf ("/gallery/items/*[%d]/fullsize", i + 1);
+ item->force_fullsize = (xml_file_get_node_present (xml, s) || item->path == NULL);
g_free (s);
s = g_strdup_printf ("/gallery/items/*[%d]/hidden", i + 1);