my $orig_list = $gal->read_list('gallery.list') or die "Cannot read gallery.list: $!\n";
my $photo_dir = $gal->get('PhotoDir');
-my $photo_meta = File::Spec->catfile($photo_dir, 'gallery.meta');
+my $photo_meta = $gal->photo_meta_name;
print "Reading meta-data from $photo_meta\n";
-f $photo_meta or die "Cannot load $photo_meta\n";
my $meta = $gal->read_meta($photo_meta);
}
}
-my $cache_meta = File::Spec->catfile($cache_dir, 'cache.meta');
+my $cache_meta = $gal->cache_meta_name;
print "Writing meta-data to $cache_meta\n";
$gal->write_meta($cache_meta, $meta);
File::Path::mkpath($photo_dir) or die "Unable to create $photo_dir: $!\n";
}
-my $photo_meta = $photo_dir . "/gallery.meta";
+my $photo_meta = $gal->photo_meta_name;
my $old_meta = {};
if (-f $photo_meta) {
print "Reading old meta-data\n";