Skip to content

Commit

Permalink
fix: app.get_loading_images_special
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo2011 committed Feb 3, 2025
1 parent acf4502 commit 2904293
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions bilibili_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,41 +82,16 @@ async def get_loading_images_special(
Returns:
dict: 调用 API 返回的结果
"""
APPKEY = "1d8b6e7d45233436"
APPSEC = "560c52ccd288fed045859ed18bffd973"

ts = int(time.time())

credential = credential if credential is not None else Credential()

api = API["splash"]["brand"]
sign_params = (
"appkey="
+ APPKEY
+ "&mobi_app="
+ mobi_app
+ "&platform="
+ platform
+ "&screen_height="
+ str(height)
+ "&screen_width="
+ str(width)
+ "&ts="
+ str(ts)
+ APPSEC
)

sign = md5()
sign.update(sign_params.encode(encoding="utf-8"))
sign = sign.hexdigest()

params = {
"appkey": APPKEY,
"mobi_app": mobi_app,
"platform": platform,
"screen_height": height,
"screen_width": width,
"ts": ts,
"sign": sign,
}
return await Api(**api, credential=credential).update_params(**params).result

0 comments on commit 2904293

Please sign in to comment.