Missing include.
[dcpomatic.git] / src / lib / kdm_with_metadata.cc
index 716d29d9c49495b5b27b4bbfb4f9afc6b73fa31a..123649d127c0a00fbf468d765505a17b89794046 100644 (file)
@@ -28,6 +28,7 @@
 #include "screen.h"
 #include "util.h"
 #include "zipper.h"
+#include <dcp/file.h>
 
 #include "i18n.h"
 
@@ -66,7 +67,7 @@ write_files (
 
        /* Write KDMs to the specified directory */
        for (auto i: kdms) {
-               auto out = fix_long_path(directory / careful_string_filter(name_format.get(i->name_values(), ".xml")));
+               auto out = dcp::fix_long_path(directory / careful_string_filter(name_format.get(i->name_values(), ".xml")));
                if (!boost::filesystem::exists (out) || confirm_overwrite (out)) {
                        i->kdm_as_xml (out);
                        ++written;
@@ -225,6 +226,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;
                };