From 727d2d499e5be925ef1b4076073aa8d2916b30ed Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 8 Jan 2024 00:45:04 +0100 Subject: Add OK note when content version label text is valid. --- src/verify.cc | 4 ++++ src/verify.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') 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 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 in a in CPL %1 is empty", note.cpl_id().get()); + case VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT: + return String::compose("CPL has valid %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) -- cgit v1.2.3