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 CheckMeta(Check):
17 description = _('Metadata parse error.')
20 class CheckCoverLocal(Check):
22 description = _('Cover is not local')
24 def check_meta(self, meta):
26 if meta.cover_source is None:
27 print('no cover_source')
29 return not re.match(r'https?://redakcja.wolnelektury.pl/cover/image/', meta.cover_source)