help='Exclude specific books by slug')
)
help = 'Prepare data for Lesmianator.'
- ftypes = ['xml', 'txt', 'html', 'epub', 'pdf']
args = '[%s] output_path.zip' % '|'.join(ftypes)
def handle(self, ftype, path, **options):
include = options.get('include')
exclude = options.get('exclude')
- if ftype in self.ftypes:
+ if ftype in Book.file_types:
field = "%s_file" % ftype
else:
print self.style.ERROR('Unknown file type.')