Ejemplo n.º 1
0
        public ApiModel SeasonPlayUrlBiliPlus(string aid, string cid, int qn, int season_type, bool dash)
        {
            ApiModel api = new ApiModel()
            {
                method    = HttpMethod.GET,
                baseUrl   = $"https://www.biliplus.com/BPplayurl.php",
                parameter = $"appkey={ApiUtils.WebVideoKey.Appkey}&cid={cid}&qn={qn}&type=&otype=json&module=bangumi&season_type={season_type}"
            };

            if (ApiHelper.IsLogin())
            {
                api.parameter += $"&access_key={ApiHelper.access_key}&mid={ApiHelper.GetUserId()}";
            }
            if (dash)
            {
                api.parameter += "&fnver=0&fnval=16";
            }
            api.parameter += ApiUtils.GetSign(api.parameter, ApiUtils.WebVideoKey);
            return(api);
        }