2 from django.utils.translation import gettext_lazy as _
6 def check_meta(self, meta):
10 class CheckParse(Check):
12 description = _('Book parse error.')
15 class CheckCoverLocal(Check):
17 description = _('Cover is not local')
19 def check_meta(self, meta):
21 if meta.cover_source is None:
22 print('no cover_source')
24 return not re.match(r'https?://redakcja.wolnelektury.pl/cover/image/', meta.cover_source)