goodreads-backup/templates/books.html

40 lines
1.3 KiB
HTML

<html>
<meta charset="utf-8">
<table>
{% for book in books %}
{% set url_title = ('"' + book.main_title.replace('.', ' ') + '"') | urlencode %}
{% set title_and_author = ('"' + book.main_title + '" ' + book.authors.0) | urlencode %}
<tr>
<td rowspan="3"><img src="{{ book.cover }}" /></td>
<td nowrap="nowrap">
<a href="http://1337x.to/search/{{- title_and_author -}}/1/">1337x</a>
{# | <a href="https://www.google.co.uk/search?q=site%3Aforum.mobilism.org+{{- title_and_author -}}">mobilism</a> #}
| <a href="https://forum.mobilism.org/search.php?sr=topics&keywords={{- title_and_author -}}">mobilism</a>
| <a href="http://en.booksee.org/s/?q={{- title_and_author -}}">booksee</a>
| <a href="http://gen.lib.rus.ec/search.php?req={{- title_and_author -}}">Library Genesis</a>
| <a href="http://libgen.io/foreignfiction/index.php?s={{- book.authors.0 | urlencode -}}">Library Genesis Fiction</a>
</td>
<td nowrap="nowrap">
{{ book.dir }} / {{ book.file }}
</td>
<td nowrap="nowrap">
{{ book.rating }}
</td>
</tr>
<tr>
<td colspan="3"><a href="{{ book.url }}">{{ book.title }}</a>
by {% for a in book.authors %}{{ a -}}{% if not loop.last %}, {% endif %}{% endfor %}<br>
</td>
</tr>
<tr>
<td colspan="3">
{% if book.description %}
{% for p in book.description.split('\xa0') %}
<p>{{ p }}</p>
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
</html>