Ignore screen specifier when making containers.
authorCarl Hetherington <cth@carlh.net>
Wed, 6 May 2020 18:14:46 +0000 (20:14 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 6 May 2020 18:15:49 +0000 (20:15 +0200)
src/lib/kdm_with_metadata.cc

index f8718386f555c073971a5e0840c15d947c514742..08b6dbbab19beb5795fae1fc8b9ec6f757f0c421 100644 (file)
@@ -146,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);
@@ -172,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 */