Add $CINEMA_SHORT_NAME variable in KDM emails.
[dcpomatic.git] / src / lib / kdm_with_metadata.cc
index 716d29d9c49495b5b27b4bbfb4f9afc6b73fa31a..857fdca2c01c9590373c4fa286fd641cb0bf3562 100644 (file)
@@ -225,6 +225,7 @@ send_emails (
                        boost::algorithm::replace_all (target, "$START_TIME", i.front()->get('b').get_value_or(""));
                        boost::algorithm::replace_all (target, "$END_TIME", i.front()->get('e').get_value_or(""));
                        boost::algorithm::replace_all (target, "$CINEMA_NAME", i.front()->get('c').get_value_or(""));
+                       boost::algorithm::replace_all (target, "$CINEMA_SHORT_NAME", i.front()->get('c').get_value_or("").substr(0, 14));
                        return target;
                };