2 # -*- coding: utf-8 -*-
4 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
7 from librarian.book2anything import Book2Anything
10 class Book2Cover(Book2Anything):
14 cover_optional = False
17 def transform(wldoc, cover):
18 return wldoc.as_cover(cover_class=cover)
21 if __name__ == '__main__':