Change fb2+zip to fb2zip

This commit is contained in:
2021-12-05 13:47:50 +03:00
parent c04fac8534
commit 50fab5c84a

View File

@@ -143,7 +143,7 @@ class Book(ormar.Model):
@ormar.property_field @ormar.property_field
def available_types(self) -> list[str]: def available_types(self) -> list[str]:
if self.file_type == 'fb2' and self.source.name == 'flibusta': if self.file_type == 'fb2' and self.source.name == 'flibusta':
return ['fb2', 'fb2+zip', 'epub', 'mobi'] return ['fb2', 'fb2zip', 'epub', 'mobi']
return [self.file_type] return [self.file_type]