~nhanb/pytaku

34d294b8836d39198eccde34d0bd183fce5a42b2 — Nhân 4 months ago fd3f4fb master
mangasee switched their cover domain again
2 files changed, 3 insertions(+), 3 deletions(-)

M src/mangoapi/mangasee.py
M tests/mangoapi/test_mangasee.py
M src/mangoapi/mangasee.py => src/mangoapi/mangasee.py +2 -2
@@ 123,7 123,7 @@ class Mangasee(Site):
                "id": row[0],
                "name": row[1],
                "site": "mangasee",
                "thumbnail": f"https://cover.nep.li/cover/{row[0]}.jpg",
                "thumbnail": f"https://temp.compsci88.com/cover/{row[0]}.jpg",
            }
            for row in self.search_table.search(query)
        ]


@@ 132,7 132,7 @@ class Mangasee(Site):
        return self.title_thumbnail(title_id, cover_ext)

    def title_thumbnail(self, title_id, cover_ext):
        return f"https://cover.nep.li/cover/{title_id}.jpg"
        return f"https://temp.compsci88.com/cover/{title_id}.jpg"

    def title_source_url(self, title_id):
        return f"https://mangasee123.com/manga/{title_id}"

M tests/mangoapi/test_mangasee.py => tests/mangoapi/test_mangasee.py +1 -1
@@ 65,6 65,6 @@ def test_search_title():
            "id": "Sayonara-Football",
            "name": "Sayonara, Football",
            "site": "mangasee",
            "thumbnail": "https://cover.nep.li/cover/Sayonara-Football.jpg",
            "thumbnail": "https://temp.compsci88.com/cover/Sayonara-Football.jpg",
        }
    ]