check: added search in header when '_image:NAME' in content
This commit is contained in:
parent
4d285c4d27
commit
1a14dbb2a9
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue