mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-26 20:21:35 +08:00
Update On Tue May 20 20:37:27 CEST 2025
This commit is contained in:
@@ -12,6 +12,8 @@ public static class Config
|
||||
public static string HOST { get; set; } = "api.bilibili.com";
|
||||
//BiliPlus EP Host
|
||||
public static string EPHOST { get; set; } = "api.bilibili.com";
|
||||
//Bili Tv Api Host
|
||||
public static string TVHOST { get; set; } = "api.snm0516.aisee.tv";
|
||||
//BiliPlus Area
|
||||
public static string AREA { get; set; } = "";
|
||||
|
||||
|
@@ -29,7 +29,7 @@ public static partial class Parser
|
||||
|
||||
if (appApi) return await AppHelper.DoReqAsync(aid, cid, epId, qn, bangumi, encoding, Config.TOKEN);
|
||||
|
||||
string prefix = tvApi ? bangumi ? "api.snm0516.aisee.tv/pgc/player/api/playurltv" : "api.snm0516.aisee.tv/x/tv/playurl"
|
||||
string prefix = tvApi ? bangumi ? $"{Config.TVHOST}/pgc/player/api/playurltv" : $"{Config.TVHOST}/x/tv/playurl"
|
||||
: bangumi ? $"{Config.HOST}/pgc/player/web/v2/playurl" : "api.bilibili.com/x/player/wbi/playurl";
|
||||
prefix = $"https://{prefix}?";
|
||||
|
||||
|
@@ -77,6 +77,7 @@ internal static class CommandLineInvoker
|
||||
private static readonly Option<string> MultiFilePattern = new(["--multi-file-pattern", "-M"], $"使用内置变量自定义多P存储文件名:\r\n\r\n默认为: {Program.MultiPageDefaultSavePath}\r\n");
|
||||
private static readonly Option<string> Host = new(["--host"], "指定BiliPlus host(使用BiliPlus需要access_token, 不需要cookie, 解析服务器能够获取你账号的大部分权限!)");
|
||||
private static readonly Option<string> EpHost = new(["--ep-host"], "指定BiliPlus EP host(用于代理api.bilibili.com/pgc/view/web/season, 大部分解析服务器不支持代理该接口)");
|
||||
private static readonly Option<string> TvHost = new(["--tv-host"], "自定义tv端接口请求Host(用于代理api.snm0516.aisee.tv)");
|
||||
private static readonly Option<string> Area = new(["--area"], "(hk|tw|th) 使用BiliPlus时必选, 指定BiliPlus area");
|
||||
private static readonly Option<string> ConfigFile = new(["--config-file"], "读取指定的BBDown本地配置文件(默认为: BBDown.config)");//以下仅为兼容旧版本命令行, 不建议使用
|
||||
private static readonly Option<string> Aria2cProxy = new(["--aria2c-proxy"], "调用aria2c进行下载时的代理地址配置") { IsHidden = true };
|
||||
@@ -144,6 +145,7 @@ internal static class CommandLineInvoker
|
||||
if (bindingContext.ParseResult.HasOption(DelayPerPage)) option.DelayPerPage = bindingContext.ParseResult.GetValueForOption(DelayPerPage)!;
|
||||
if (bindingContext.ParseResult.HasOption(Host)) option.Host = bindingContext.ParseResult.GetValueForOption(Host)!;
|
||||
if (bindingContext.ParseResult.HasOption(EpHost)) option.EpHost = bindingContext.ParseResult.GetValueForOption(EpHost)!;
|
||||
if (bindingContext.ParseResult.HasOption(TvHost)) option.TvHost = bindingContext.ParseResult.GetValueForOption(TvHost)!;
|
||||
if (bindingContext.ParseResult.HasOption(Area)) option.Area = bindingContext.ParseResult.GetValueForOption(Area)!;
|
||||
if (bindingContext.ParseResult.HasOption(ConfigFile)) option.ConfigFile = bindingContext.ParseResult.GetValueForOption(ConfigFile)!;
|
||||
if (bindingContext.ParseResult.HasOption(Aria2cProxy)) option.Aria2cProxy = bindingContext.ParseResult.GetValueForOption(Aria2cProxy)!;
|
||||
@@ -208,6 +210,7 @@ internal static class CommandLineInvoker
|
||||
DelayPerPage,
|
||||
Host,
|
||||
EpHost,
|
||||
TvHost,
|
||||
Area,
|
||||
ConfigFile,
|
||||
Aria2cProxy,
|
||||
|
@@ -50,6 +50,7 @@ internal class MyOption
|
||||
public string DelayPerPage { get; set; } = "0";
|
||||
public string Host { get; set; } = "api.bilibili.com";
|
||||
public string EpHost { get; set; } = "api.bilibili.com";
|
||||
public string TvHost { get; set; } = "api.snm0516.aisee.tv";
|
||||
public string Area { get; set; } = "";
|
||||
public string? ConfigFile { get; set; }
|
||||
//以下仅为兼容旧版本命令行,不建议使用
|
||||
|
@@ -217,6 +217,7 @@ partial class Program
|
||||
Config.DEBUG_LOG = myOption.Debug;
|
||||
Config.HOST = myOption.Host;
|
||||
Config.EPHOST = myOption.EpHost;
|
||||
Config.TVHOST = myOption.TvHost;
|
||||
Config.AREA = myOption.Area;
|
||||
Config.COOKIE = myOption.Cookie;
|
||||
Config.TOKEN = myOption.AccessToken.Replace("access_token=", "");
|
||||
|
@@ -111,6 +111,7 @@ Options:
|
||||
--delay-per-page <delay-per-page> 设置下载合集分P之间的下载间隔时间(单位: 秒, 默认无间隔)
|
||||
--host <host> 指定BiliPlus host(使用BiliPlus需要access_token, 不需要cookie, 解析服务器能够获取你账号的大部分权限!)
|
||||
--ep-host <ep-host> 指定BiliPlus EP host(用于代理api.bilibili.com/pgc/view/web/season, 大部分解析服务器不支持代理该接口)
|
||||
--tv-host <tv-host> 自定义tv端接口请求Host(用于代理api.snm0516.aisee.tv)
|
||||
--area <area> (hk|tw|th) 使用BiliPlus时必选, 指定BiliPlus area
|
||||
--config-file <config-file> 读取指定的BBDown本地配置文件(默认为: BBDown.config)
|
||||
--version Show version information
|
||||
|
Reference in New Issue
Block a user