X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic.cc;h=9330b1b60b7e579fe67bce611c5d422dd1352580;hp=c646942cb3313dfc52182a6ea58d86d2979a399d;hb=5cd49a43b0c453f714bb654d0f23b726b39dadec;hpb=89e202dd965d8f9cc94b965c804a31b7e01adb94 diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index c646942cb..9330b1b60 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -53,6 +53,7 @@ #include "lib/cross.h" #include "lib/content_factory.h" #include "lib/compose.hpp" +#include "lib/cinema_kdms.h" #include #include #include @@ -445,15 +446,22 @@ private: } try { + list screen_kdms = _film->make_kdms (d->screens(), d->cpl(), d->from(), d->until(), d->formulation()); if (d->write_to ()) { ScreenKDM::write_files ( _film->name(), - _film->make_kdms (d->screens(), d->cpl(), d->from(), d->until(), d->formulation()), + screen_kdms, d->directory() ); } else { JobManager::instance()->add ( - shared_ptr (new SendKDMEmailJob (_film, d->screens (), d->cpl (), d->from (), d->until (), d->formulation ())) + shared_ptr (new SendKDMEmailJob ( + _film->name(), + _film->dcp_name(), + d->from(), + d->until(), + CinemaKDMs::collect (screen_kdms) + )) ); } } catch (dcp::NotEncryptedError& e) {