From c78b941509305907e6c06c92632ee24568fda8e6 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Wed, 15 Nov 2023 00:40:19 +0800 Subject: [PATCH] fix: station relic image cdn --- res_func/relic_res.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res_func/relic_res.py b/res_func/relic_res.py index e0a3206..0720755 100644 --- a/res_func/relic_res.py +++ b/res_func/relic_res.py @@ -4,7 +4,7 @@ from bs4 import BeautifulSoup from func.data import read_relics, all_relics, dump_relics from res_func.client import client -from res_func.url import relic_url, base_station_url +from res_func.url import relic_url async def fix_set_image(): @@ -22,7 +22,7 @@ async def fix_set_image(): continue sid = int(url.split("/")[-1]) images = div.find_all("img") - images = [f"{base_station_url}{i.get('src')}" for i in images] + images = [f"{i.get('src')}" for i in images] if len(images) not in {3, 5}: print(f"套装 {sid} 图片数量异常") continue