Skip to content

Commit 0d945b0

Browse files
authored
fix: Kemono thumbnail 404 error (#92)
1 parent 45d1759 commit 0d945b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nazurin/sites/kemono/api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def fetch(self, service: str, user_id: str, post_id: str) -> Illust:
5757
image_index = 0
5858
for file in files:
5959
path: str = file["path"]
60-
url = "https://c1.kemono.party/data" + path
60+
url = "https://c1.kemono.su/data" + path
6161

6262
# Handle non-image files
6363
if not self.is_image(path):
@@ -72,7 +72,7 @@ async def fetch(self, service: str, user_id: str, post_id: str) -> Illust:
7272
destination, filename = self.get_storage_dest(
7373
post, f"{image_index} - {file['name']}", path
7474
)
75-
thumbnail = "https://img.kemono.party/thumbnail/data" + path
75+
thumbnail = "https://img.kemono.su/thumbnail/data" + path
7676
images.append(
7777
Image(
7878
filename,
@@ -120,7 +120,7 @@ def build_caption(post) -> Caption:
120120
"title": post["title"],
121121
"author": "#" + post["username"],
122122
"url": (
123-
f"https://kemono.party/{post['service']}"
123+
f"https://kemono.su/{post['service']}"
124124
f"/user/{post['user']}/post/{post['id']}"
125125
),
126126
}

0 commit comments

Comments
 (0)