summaryrefslogtreecommitdiff
path: root/src/lib/send_problem_report_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-03-23 11:29:39 +0000
committerCarl Hetherington <cth@carlh.net>2017-03-23 11:29:39 +0000
commitfc7b0336a32ec10af9561f351dba4787ca5e0dd2 (patch)
tree56039ddda588c6951126d057be73f4dd9f38ea14 /src/lib/send_problem_report_job.cc
parent7aea1ece6b2cb78af2bea7da086e094258d16e87 (diff)
Send current film metadata with problem report, not the last saved.
Diffstat (limited to 'src/lib/send_problem_report_job.cc')
-rw-r--r--src/lib/send_problem_report_job.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc
index 3c0bc47aa..c8b577ca7 100644
--- a/src/lib/send_problem_report_job.cc
+++ b/src/lib/send_problem_report_job.cc
@@ -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;