cover thumb with no box for api
[librarian.git] / scripts / book2mobi
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 #
7 from librarian.book2anything import Book2Anything, Option
8
9
10 class Book2Mobi(Book2Anything):
11     format_name = "MOBI"
12     ext = "mobi"
13     uses_cover = True
14     cover_optional = False
15     uses_provider = True
16
17     transform_options = [
18         Option('-k', '--use-kindlegen',
19                 action='store_true', dest='use_kindlegen', default=False,
20                 help='use kindlegen tool instead of Calibre')
21         ]
22
23
24 if __name__ == '__main__':
25     Book2Mobi.run()