diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-26 00:09:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-26 00:09:34 +0100 |
| commit | fad8d13cd779a6237feed2c855a46e1a7c66e0ad (patch) | |
| tree | 22026d4075520a1ad151f0094b90a6b40bcc25b6 /src/lib/film.cc | |
| parent | 12e5451c5102c9a3d5b51930503437e0cbf53267 (diff) | |
Use Film/Playlist for SPL management rather than special classes.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index bd5724828..807aeaf2f 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -403,6 +403,13 @@ Film::metadata (bool with_content_paths) const return doc; } +void +Film::write_metadata (boost::filesystem::path path) const +{ + shared_ptr<xmlpp::Document> doc = metadata (); + doc->write_to_file_formatted (path.string()); +} + /** Write state to our `metadata' file */ void Film::write_metadata () const |
