Skip to content

Commit

Permalink
播放代理视频请求地址时添加referer
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Aug 29, 2024
1 parent 7460013 commit a8b8642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public ApiModel SeasonPlayUrl(string aid, string cid, string ep_id, int qn, int
if (proxy)
{
api.parameter += $"&area={area}";
api.headers = new Dictionary<string, string>()
{
{"referer","https://www.bilibili.com"}
};
}
return api;
}
Expand Down

0 comments on commit a8b8642

Please sign in to comment.