when merging, if there is no more elements at a point, remove
authorgc <gc>
Fri, 17 Jun 2005 20:54:06 +0000 (20:54 +0000)
committergc <gc>
Fri, 17 Jun 2005 20:54:06 +0000 (20:54 +0000)
attributes of the dir element that indicate there is an album
here

bin/booh-backend

index aeaa77768f2d9ea6597a2d7a1e188f21a2b8a98a..3a18892c46494173329dd06bb4701b8435109d93 100755 (executable)
@@ -567,6 +567,11 @@ def walk_source_dir
                         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' }