}
name_values['s'] = i.screen->name;
+ name_values['i'] = i.kdm.id ();
string const name = name_format.get(name_values, ".xml");
if (zip_add (zip, name.c_str(), source) == -1) {
throw runtime_error ("failed to add KDM to ZIP archive");
BOOST_FOREACH (ScreenKDM const & i, screen_kdms) {
name_values['c'] = i.screen->cinema->name;
name_values['s'] = i.screen->name;
+ name_values['i'] = i.kdm.id ();
boost::filesystem::path out = directory / (name_format.get(name_values, ".xml"));
if (!boost::filesystem::exists (out) || confirm_overwrite (out)) {
i.kdm.as_xml (out);