Write metadata on new film to go with the directory that is created.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Apr 2013 20:20:00 +0000 (21:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Apr 2013 20:20:00 +0000 (21:20 +0100)
src/lib/film.cc

index a42b874e856d3470e9d7526bc8d5b6b53a9cd771..227f8557bcb1058ae5cd8a0a7f044e88aad7b150 100644 (file)
@@ -143,6 +143,8 @@ Film::Film (string d, bool must_exist)
        
        if (must_exist) {
                read_metadata ();
+       } else {
+               write_metadata ();
        }
 
        _log.reset (new FileLog (file ("log")));