Send current film metadata with problem report, not the last saved.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Mar 2017 11:29:39 +0000 (11:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Mar 2017 11:29:39 +0000 (11:29 +0000)
src/lib/send_problem_report_job.cc

index 3c0bc47aac58fba1fc5d87d4a108702c99b91528..c8b577ca774ae9d2a9b742c96e37d4e8e2f5a0de 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2017 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -27,6 +27,7 @@
 #include "version.h"
 #include "emailer.h"
 #include "environment_info.h"
+#include <libxml++/libxml++.h>
 #include <boost/foreach.hpp>
 
 #include "i18n.h"
@@ -87,7 +88,10 @@ SendProblemReportJob::run ()
                body += "---<8----\n\n";
 
                add_file (body, "ffprobe.log");
-               add_file (body, "metadata.xml");
+
+               body += "---<8----\n";
+               body += _film->metadata()->write_to_string_formatted("UTF-8");
+               body += "---<8----\n";
        }
 
        list<string> to;