diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-08 00:35:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-15 10:59:34 +0200 |
| commit | 9074a175788d0d51d3396cfbcab32c9d022c3589 (patch) | |
| tree | 927d6f9b898534c1957ec17c93da246d82ea3ac1 /src | |
| parent | a8d2013b99626ed08e7c80e6e58cf234b53b0c4d (diff) | |
Add OK note when CPL has valid annotation text.
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 430f369a..0dd8f75e 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1603,6 +1603,8 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl) context.bv21_error(VerificationNote::Code::MISSING_CPL_ANNOTATION_TEXT, cpl->file().get()); } else if (cpl->annotation_text().get() != cpl->content_title_text()) { context.warning(VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT, cpl->file().get()); + } else { + context.ok(VerificationNote::Code::VALID_CPL_ANNOTATION_TEXT, cpl->annotation_text().get()); } } @@ -2043,6 +2045,8 @@ dcp::note_to_string (VerificationNote note) return String::compose("The CPL %1 has no <AnnotationText> tag.", note.cpl_id().get()); case VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT: return String::compose("The CPL %1 has an <AnnotationText> which differs from its <ContentTitleText>.", note.cpl_id().get()); + case VerificationNote::Code::VALID_CPL_ANNOTATION_TEXT: + return String::compose("Valid CPL annotation text %1", note.note().get()); case VerificationNote::Code::MISMATCHED_ASSET_DURATION: return "All assets in a reel do not have the same duration."; case VerificationNote::Code::MISSING_MAIN_SUBTITLE_FROM_SOME_REELS: diff --git a/src/verify.h b/src/verify.h index 24a4e34c..70cdff3d 100644 --- a/src/verify.h +++ b/src/verify.h @@ -265,6 +265,7 @@ public: * file contains the CPL filename */ MISMATCHED_CPL_ANNOTATION_TEXT, + VALID_CPL_ANNOTATION_TEXT, /** At least one asset in a reel does not have the same duration as the others */ MISMATCHED_ASSET_DURATION, /** If one reel has a _MainSubtitle_, all must have them */ |
