From 3d50b3345427458b7f9e11f2a30e202cf991279a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 6 May 2020 01:07:17 +0200 Subject: Fix hang and ignore screen when making containers. --- src/lib/kdm_with_metadata.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/kdm_with_metadata.cc') diff --git a/src/lib/kdm_with_metadata.cc b/src/lib/kdm_with_metadata.cc index 17789656a..08b6dbbab 100644 --- a/src/lib/kdm_with_metadata.cc +++ b/src/lib/kdm_with_metadata.cc @@ -119,6 +119,7 @@ collect (list kdms) j->push_back (i); break; } + ++j; } if (j == grouped.end()) { @@ -145,7 +146,7 @@ write_directories ( BOOST_FOREACH (list const & i, cinema_kdms) { boost::filesystem::path path = directory; - path /= container_name_format.get(i.front()->name_values(), ""); + path /= container_name_format.get(i.front()->name_values(), "", "s"); if (!boost::filesystem::exists (path) || confirm_overwrite (path)) { boost::filesystem::create_directories (path); write_files (i, path, filename_format, confirm_overwrite); @@ -171,7 +172,7 @@ write_zip_files ( BOOST_FOREACH (list const & i, cinema_kdms) { boost::filesystem::path path = directory; - path /= container_name_format.get(i.front()->name_values(), ".zip"); + path /= container_name_format.get(i.front()->name_values(), ".zip", "s"); if (!boost::filesystem::exists (path) || confirm_overwrite (path)) { if (boost::filesystem::exists (path)) { /* Creating a new zip file over an existing one is an error */ -- cgit v1.2.3