From a8b86425ae2e77da9e19a09c574df860d0f60374 Mon Sep 17 00:00:00 2001 From: ywmoyue Date: Thu, 29 Aug 2024 19:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E4=BB=A3=E7=90=86=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0referer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs b/src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs index 537e1043..e8be0aa6 100644 --- a/src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs +++ b/src/BiliLite.UWP/Models/Requests/Api/PlayerAPI.cs @@ -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() + { + {"referer","https://www.bilibili.com"} + }; } return api; }