check: added search in header when '_image:NAME' in content

This commit is contained in:
Cyrille L 2022-12-26 11:15:33 +01:00
parent 4d285c4d27
commit 1a14dbb2a9
1 changed files with 0 additions and 1 deletions

View File

@ -531,7 +531,6 @@ def check_content(post_bottom):
for ln, line in enumerate(post_bottom): for ln, line in enumerate(post_bottom):
if line.startswith('_image:'): if line.startswith('_image:'):
image_id = line.rsplit(':', 1)[1].rsplit(' ')[0] image_id = line.rsplit(':', 1)[1].rsplit(' ')[0]
print(article_header)
if not re.search(r'^image:\s|%s'%image_id, article_header): if not re.search(r'^image:\s|%s'%image_id, article_header):
tyto.exiting("10", "image: %s"%image_id, True) tyto.exiting("10", "image: %s"%image_id, True)