diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-06 01:07:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-06 01:07:17 +0200 |
| commit | 3d50b3345427458b7f9e11f2a30e202cf991279a (patch) | |
| tree | 0de938093bfe8d7f6f846bb0e35b43de9068f2b7 /src/lib/kdm_with_metadata.cc | |
| parent | 5612ef30fb13f9ab7ad83baef50837a91418f0f7 (diff) | |
Fix hang and ignore screen when making containers.
Diffstat (limited to 'src/lib/kdm_with_metadata.cc')
| -rw-r--r-- | src/lib/kdm_with_metadata.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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<KDMWithMetadataPtr> kdms) j->push_back (i); break; } + ++j; } if (j == grouped.end()) { @@ -145,7 +146,7 @@ write_directories ( BOOST_FOREACH (list<KDMWithMetadataPtr> 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<KDMWithMetadataPtr> 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 */ |
