Skip to content

Commit

Permalink
修复B站移除原有 API 导致相关 API 无法使用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Oct 7, 2023
1 parent f55cc15 commit 4058e6c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>x64</Platforms>
<Version>1.3.2.0</Version>
<Version>1.3.3.0</Version>
<Authors>LC</Authors>
<Copyright>Copyright © 2022-2023 LC. All rights reserved.</Copyright>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Controllers/BiliVideoInfoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public BiliVideoInfoController(ILogger<BiliVideoInfoController> logger, IHttpCli

var queryString = (id[..2] == "av") ? string.Concat("?aid=", id.AsSpan(2)) : ("?bvid=" + id);
using var hc = _httpClientFactory.CreateClient("Timeout5s");
hc.BaseAddress = new("https://api.bilibili.com/x/web-interface/archive/stat");
hc.BaseAddress = new("https://api.bilibili.com/x/web-interface/view");
try {
var start = DateTime.Now;
info = await hc.GetFromJsonAsync<BiliVideoInfo>(queryString).ConfigureAwait(false);
Expand Down
26 changes: 0 additions & 26 deletions wwwroot/Cache/Bing/202309.txt

This file was deleted.

7 changes: 7 additions & 0 deletions wwwroot/Cache/Bing/202310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/th?id=OHR.NationalDay2023_ZH-CN8608297006_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.VerdonCanyon_ZH-CN8872507857_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.WhitsundaySwirl_ZH-CN9085371328_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.TarantulaNebula_ZH-CN9340300473_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.GentooJump_ZH-CN9625511393_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.TaughannockFalls_ZH-CN4580750386_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp
/th?id=OHR.GrizzlyFalls_ZH-CN5152476563_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp

0 comments on commit 4058e6c

Please sign in to comment.