Add support to force import keys

This commit is contained in:
2024-03-13 18:10:09 +08:00
parent c37abe2f3f
commit b62571f711
5 changed files with 23 additions and 7 deletions

View File

@@ -87,6 +87,10 @@ class Config:
def export_type(self):
return self.get_arg('type', 'epub,txt')
@cached_property
def force(self):
return getattr(self._args, 'force', False)
def get_export_book(self, book, ext):
temp = self.export_book_template
for k in book.keys():