Skip to content

Commit

Permalink
修复intl api
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Oct 19, 2022
1 parent 7f3a657 commit 9392f78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion BBDown.Core/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class Config
public static readonly Dictionary<string, string> qualitys = new() {
{"127","8K 超高清" }, {"126","杜比视界" }, {"125","HDR 真彩" }, {"120","4K 超清" }, {"116","1080P 高帧率" },
{"112","1080P 高码率" }, {"80","1080P 高清" }, {"74","720P 高帧率" },
{"64","720P 高清" }, {"48","720P 高清" }, {"32","480P 清晰" }, {"16","360P 流畅" }
{"64","720P 高清" }, {"48","720P 高清" }, {"32","480P 清晰" }, {"16","360P 流畅" },
{"5","144P 流畅" }, {"6","240P 流畅" }
};
}
}
2 changes: 1 addition & 1 deletion BBDown.Core/Util/SubUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static async Task<List<Subtitle>> GetSubtitlesAsync(string aid, string ci
{
try
{
string api = $"https://api.bilibili.tv/intl/gateway/web/v2/subtitle?&episode_id={epId}";
string api = $"https://api.biliintl.com/intl/gateway/web/v2/subtitle?&episode_id={epId}";
string json = await GetWebSourceAsync(api);
using var infoJson = JsonDocument.Parse(json);
var subs = infoJson.RootElement.GetProperty("data").GetProperty("subtitles").EnumerateArray();
Expand Down

0 comments on commit 9392f78

Please sign in to comment.