self.login()
return self._session
- def send_book(self, shop, book, changes=None):
+ def send_book(self, site_book_publish, changes=None):
raise NotImplementedError()
def get_description(self, wlbook, description_add=''):
'<a href="https://wolnelektury.pl/katalog/autor/{}/">{}</a>'.format(
slugify(p.readable()),
p.readable(),
- )
+ ) if p is not None else ''
for p in wlbook.meta.authors
) + '<br>'
description += '<a href="https://wolnelektury.pl/katalog/lektura/{}/">{}</a><br>'.format(
'<a href="https://wolnelektury.pl/katalog/epoka/{}/">{}</a>'.format(
slugify(p),
p,
- )
+ ) if p is not None else ''
for p in wlbook.meta.epochs
) + ' '
description += 'Rodzaj: ' + ', '.join(
'<a href="https://wolnelektury.pl/katalog/rodzaj/{}/">{}</a>'.format(
slugify(p),
p,
- )
+ ) if p is not None else ''
for p in wlbook.meta.kinds
) + ' '
description += 'Gatunek: ' + ', '.join(
'<a href="https://wolnelektury.pl/katalog/gatunek/{}/">{}</a>'.format(
slugify(p),
p,
- )
+ ) if p is not None else ''
for p in wlbook.meta.genres
) + '</p>'