diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-16 16:24:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-16 16:24:07 +0100 |
| commit | 81ed0ebb725a7b5fec00ae209ba8b0d70ebc4ee1 (patch) | |
| tree | 41609bbfaf9364b615d6d2178ebea9f3da4451a2 /src/dcp.cc | |
| parent | f98f4f58e0b76cf60747897cbb8e488d8e29597a (diff) | |
Always use ID in custom filenames.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -466,15 +466,13 @@ DCP::write_xml ( BOOST_FOREACH (shared_ptr<CPL> i, cpls ()) { NameFormat::Map values; values['t'] = "cpl"; - values['i'] = i->id(); - i->write_xml (_directory / (name_format.get(values) + ".xml"), standard, signer); + i->write_xml (_directory / (name_format.get(values, "_" + i->id() + ".xml")), standard, signer); } string const pkl_uuid = make_uuid (); NameFormat::Map values; values['t'] = "pkl"; - values['i'] = pkl_uuid; - boost::filesystem::path const pkl_path = write_pkl (name_format.get(values) + ".xml", standard, pkl_uuid, metadata, signer); + boost::filesystem::path const pkl_path = write_pkl (name_format.get(values, "_" + pkl_uuid + ".xml"), standard, pkl_uuid, metadata, signer); write_volindex (standard); write_assetmap (standard, pkl_uuid, pkl_path, metadata); |
