summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c
index 986fd6c..5cce7c3 100644
--- a/src/items.c
+++ b/src/items.c
@@ -75,6 +75,12 @@ parse_album_xml (const char *filename, TAlbum *index)
index->title = xml_file_get_node_value (xml, "/gallery/general/title/text()");
index->desc = xml_file_get_node_value (xml, "/gallery/general/description/text()");
index->footnote = xml_file_get_node_value (xml, "/gallery/general/footnote/text()");
+ s = xml_file_get_node_value (xml, "/gallery/general/extra_files/text()");
+ if (s) {
+ index->extra_files = g_strsplit (s, "\n", -1);
+ free (s);
+ }
+
index->quality = xml_file_get_node_attribute_long (xml, "/gallery/general/images", "quality", -1);
index->landscape_width = xml_file_get_node_attribute_long (xml, "/gallery/general/images", "landscape_w", 0);
@@ -237,6 +243,8 @@ free_album_data (TAlbum *album)
free (album->meta_description);
if (album->meta_keywords)
free (album->meta_keywords);
+ if (album->extra_files)
+ g_strfreev (album->extra_files);
if (album->items) {
if (album->items->len > 0) {