diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-08 00:45:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-15 10:59:34 +0200 |
| commit | 727d2d499e5be925ef1b4076073aa8d2916b30ed (patch) | |
| tree | acf8710f08317a3de6436bd76d94c02367862bd4 /src | |
| parent | e274f96b55a535698224c0331025c67d31aa8f27 (diff) | |
Add OK note when content version label text is valid.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 4 | ||||
| -rw-r--r-- | src/verify.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index e5959f23..14433451 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1597,6 +1597,8 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl) if (version.label_text.empty()) { context.warning(VerificationNote::Code::EMPTY_CONTENT_VERSION_LABEL_TEXT, cpl->file().get()); break; + } else { + context.ok(VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT, version.label_text); } } @@ -2192,6 +2194,8 @@ dcp::note_to_string (VerificationNote note) return String::compose("The asset with ID %1 in the asset map actually has an id of %2", note.id().get(), note.other_id().get()); case VerificationNote::Code::EMPTY_CONTENT_VERSION_LABEL_TEXT: return String::compose("The <LabelText> in a <ContentVersion> in CPL %1 is empty", note.cpl_id().get()); + case VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT: + return String::compose("CPL has valid <ContentVersion> %1", note.note().get()); } return ""; diff --git a/src/verify.h b/src/verify.h index 071a3e0c..081007c9 100644 --- a/src/verify.h +++ b/src/verify.h @@ -491,6 +491,7 @@ public: * file contains the CPL filename */ EMPTY_CONTENT_VERSION_LABEL_TEXT, + VALID_CONTENT_VERSION_LABEL_TEXT, }; VerificationNote (Type type, Code code) |
