diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-17 22:35:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-03 22:46:34 +0200 |
| commit | d4019480147bd6b478f8b067982c53251e5d6f15 (patch) | |
| tree | 9cf10f9655b7ef332d3362da32eba4000cd1fe4d /src/tools | |
| parent | b4c7d661a2c7b072d18e82129ff0a31a99ba5081 (diff) | |
Add all DCP CPLs to the content list, and write CPL ID to SPLs instead of digest (#3040).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 2e9bbb9f3..91375e489 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -102,9 +102,14 @@ public: return _content_view->selected(); } - shared_ptr<Content> get(string digest) const override + shared_ptr<Content> get_by_digest(string digest) const override { - return _content_view->get(digest); + return _content_view->get_by_digest(digest); + } + + shared_ptr<Content> get_by_cpl_id(string cpl_id) const override + { + return _content_view->get_by_cpl_id(cpl_id); } private: @@ -413,7 +418,7 @@ private: void set_item(long N, SPLEntry e) { _list->SetItem(N, 0, std_to_wx(e.name)); - _list->SetItem(N, 1, std_to_wx(e.id)); + _list->SetItem(N, 1, std_to_wx(e.id.get_value_or(""))); _list->SetItem(N, 2, std_to_wx(e.kind->name())); _list->SetItem(N, 3, e.encrypted ? S_("Question|Y") : S_("Question|N")); } |
