attributes of the dir element that indicate there is an album
here
end
end
}
+ #- if there is no more elements here, there is no album here anymore
+ if !xmldir.child_byname_notattr('image', 'deleted') && !xmldir.child_byname_notattr('video', 'deleted')
+ xmldir.delete_attribute('thumbnails-caption')
+ xmldir.delete_attribute('thumbnails-captionfile')
+ end
end
end
images = entries.find_all { |e| entry2type(e) == 'image' }