Repos / pytaku / b7eed6179d
commit b7eed6179de5229384fbc14e691786de63b2ba7b
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Sun Apr 11 00:12:15 2021 +0700

    remove prints & outdated docstring/comment/annotation

diff --git a/pyproject.toml b/pyproject.toml
index 27637eb..db670a0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "pytaku"
-version = "0.4.2"
+version = "0.4.3"
 description = "Self-hostable web-based manga reader"
 authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
 license = "AGPL-3.0-only"
diff --git a/src/mangoapi/mangasee.py b/src/mangoapi/mangasee.py
index 86a1faf..ded8b8c 100644
--- a/src/mangoapi/mangasee.py
+++ b/src/mangoapi/mangasee.py
@@ -59,7 +59,6 @@ def get_chapter(self, title_id, chapter_id):
         index = chapter_id[0]
         suffix = "" if index == "1" else f"-index-{index}"
         url = f"https://mangasee123.com/read-online/{title_id}-chapter-{numbers['number']}{suffix}.html"
-        print(">>", url)
         resp = self.http_get(url)
         html = resp.text
 
diff --git a/src/pytaku/main.py b/src/pytaku/main.py
index 3de7507..88e51d1 100644
--- a/src/pytaku/main.py
+++ b/src/pytaku/main.py
@@ -98,7 +98,6 @@ def proxy_view(b64_url):
         - be a polite netizen in general
     """
     url = _decode_proxy_url(b64_url)
-    print("Proxying url:", url)
     if not _is_manga_img_url(url):
         print("Invalid img url:", url)
         return "Nope", 400
diff --git a/src/pytaku/scripts/migrate_mangasee_chapter_ids.py b/src/pytaku/scripts/migrate_mangasee_chapter_ids.py
index b4a88ff..98f7a20 100644
--- a/src/pytaku/scripts/migrate_mangasee_chapter_ids.py
+++ b/src/pytaku/scripts/migrate_mangasee_chapter_ids.py
@@ -1,5 +1,4 @@
 import subprocess
-from typing import List, Tuple
 
 from mangoapi.mangasee import Mangasee
 from pytaku.database.common import get_conn, run_sql
@@ -8,10 +7,7 @@
 ms = Mangasee()
 
 
-def fetch_title(title_id: str) -> List[Tuple[str, str]]:
-    """
-    Each tuple is (old_id, new_id)
-    """
+def fetch_title(title_id: str):
     title = ms.get_title(title_id)
     updates = [(title_id, ch["number"], ch["id"]) for ch in title["chapters"]]
     return title, updates