diff options
Diffstat (limited to 'src/lib/film_state.cc')
| -rw-r--r-- | src/lib/film_state.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/film_state.cc b/src/lib/film_state.cc index 094342d7b..aa8bb5563 100644 --- a/src/lib/film_state.cc +++ b/src/lib/film_state.cc @@ -355,6 +355,7 @@ FilmState::dcp_length () const return length; } +/** @return a DCI-compliant name for a DCP of this film */ string FilmState::dci_name () const { @@ -367,6 +368,11 @@ FilmState::dci_name () const } } + /* Spec is that the name part should be maximum 14 characters, as I understand it */ + if (fixed_name.length() > 14) { + fixed_name = fixed_name.substr (0, 14); + } + d << fixed_name << "_"; if (dcp_content_type) { @@ -417,7 +423,7 @@ FilmState::dci_name () const } gregorian::date today = gregorian::day_clock::local_day (); - d << gregorian::to_iso_extended_string (today) << "_"; + d << gregorian::to_iso_string (today) << "_"; if (!facility.empty ()) { d << facility << "_"; |
