Repos / pytaku / 808083f6fc
commit 808083f6fc6dea22504675bc5b2cc860ef231f05
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Thu Aug 6 20:13:50 2020 +0700

    fix thumbnail links
    
    mangadex's resized images are always in `jpg` format

diff --git a/pyproject.toml b/pyproject.toml
index fa366d1..da4e8cf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "pytaku"
-version = "0.1.6"
+version = "0.1.7"
 description = ""
 authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
 license = "AGPL-3.0-only"
diff --git a/src/pytaku/templates/follows.html b/src/pytaku/templates/follows.html
index e73f057..e166017 100644
--- a/src/pytaku/templates/follows.html
+++ b/src/pytaku/templates/follows.html
@@ -63,7 +63,7 @@
   <div>
     <a href="{{ title_url }}">
       <img class="cover"
-           src="https://mangadex.org/images/manga/{{ title['id'] }}.large.{{ title['cover_ext'] }}"
+           src="https://mangadex.org/images/manga/{{ title['id'] }}.large.jpg"
            alt="{{ title['name'] }}" />
     </a>
   </div>
diff --git a/src/pytaku/templates/search.html b/src/pytaku/templates/search.html
index feb098d..d0dd325 100644
--- a/src/pytaku/templates/search.html
+++ b/src/pytaku/templates/search.html
@@ -48,7 +48,7 @@ <h1>No results for "{{ query }}".</h1>
   {% for title in titles %}
     <a class="result" href="{{ url_for('title_view', title_id=title['id'], site=title['site']) }}"
        title="{{ title['name'] }}">
-      <img src="https://mangadex.org/images/manga/{{ title['id'] }}.large.jpg" alt="">
+      <img src="https://mangadex.org/images/manga/{{ title['id'] }}.large.jpg" alt="{{ title['name'] }}">
       <span>{{ title['name'] | truncate(50) }}</span>
     </a>
   {% endfor %}