Replace %c with nothing in KDM filenames if the cinema is not known.
authorCarl Hetherington <cth@carlh.net>
Sun, 9 Jan 2022 20:49:58 +0000 (21:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 10 Jan 2022 18:27:18 +0000 (19:27 +0100)
src/lib/screen.cc

index 6f9e53b45d773f406f1e5e0a5c4ef1c59ec7716c..73ccffdd86592335090f459837f9ddd5f32c1ffe 100644 (file)
@@ -105,6 +105,8 @@ kdm_for_screen (
        dcp::NameFormat::Map name_values;
        if (cinema) {
                name_values['c'] = cinema->name;
+       } else {
+               name_values['c'] = "";
        }
        name_values['s'] = screen->name;
        name_values['f'] = film->name();