{
return String::compose("%1:%2:%3", ec.category().name(), ec.value(), ec.message());
}
+
+
+bool
+contains_assetmap(boost::filesystem::path dir)
+{
+ return boost::filesystem::is_regular_file(dir / "ASSETMAP") || boost::filesystem::is_regular_file(dir / "ASSETMAP.xml");
+}
+
extern void start_of_thread (std::string name);
extern void capture_asdcp_logs ();
extern std::string error_details(boost::system::error_code ec);
+extern bool contains_assetmap(boost::filesystem::path dir);
template <class T>
std::list<T>
#include "lib/dcpomatic_assert.h"
#include "lib/examine_content_job.h"
#include "lib/job_manager.h"
+#include "lib/util.h"
#include <dcp/exceptions.h>
#include <dcp/warnings.h>
#include <boost/filesystem.hpp>
progress.Pulse ();
shared_ptr<Content> content;
- if (is_directory(i) && (is_regular_file(i / "ASSETMAP") || is_regular_file(i / "ASSETMAP.xml"))) {
+ if (is_directory(i) && contains_assetmap(i)) {
content = make_shared<DCPContent>(i);
} else if (i.path().extension() == ".mp4") {
auto all_content = content_factory(i);