- zip_file /= container_name_format.get(i.front()->name_values(), ".zip");
- make_zip_file (i, zip_file, filename_format);
-
- auto substitute_variables = [cpl_name, i](string target) {
- boost::algorithm::replace_all (target, "$CPL_NAME", cpl_name);
- 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));
+ zip_file /= container_name_format.get(first->name_values(), ".zip");
+ make_zip_file (kdms_for_cinema, zip_file, filename_format);
+
+ auto substitute_variables = [cpl_name, first](string target) {
+ boost::algorithm::replace_all(target, "$CPL_NAME", cpl_name);
+ boost::algorithm::replace_all(target, "$START_TIME", first->get('b').get_value_or(""));
+ boost::algorithm::replace_all(target, "$END_TIME", first->get('e').get_value_or(""));
+ boost::algorithm::replace_all(target, "$CINEMA_NAME", first->get('c').get_value_or(""));
+ boost::algorithm::replace_all(target, "$CINEMA_SHORT_NAME", first->get('c').get_value_or("").substr(0, 14));