Skip to content

Commit

Permalink
调整部分代码格式, 简化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Nov 10, 2024
1 parent 99f9ed4 commit 77de9cc
Show file tree
Hide file tree
Showing 35 changed files with 4,972 additions and 5,052 deletions.
972 changes: 485 additions & 487 deletions BBDown.Core/AppHelper.cs

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions BBDown.Core/Config.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
namespace BBDown.Core
namespace BBDown.Core;

public static class Config
{
public class Config
{
//For WEB
public static string COOKIE { get; set; } = "";
//For APP/TV
public static string TOKEN { get; set; } = "";
//日志级别
public static bool DEBUG_LOG { get; set; } = false;
//BiliPlus Host
public static string HOST { get; set; } = "api.bilibili.com";
//BiliPlus EP Host
public static string EPHOST { get; set; } = "api.bilibili.com";
//BiliPlus Area
public static string AREA { get; set; } = "";
//For WEB
public static string COOKIE { get; set; } = "";
//For APP/TV
public static string TOKEN { get; set; } = "";
//日志级别
public static bool DEBUG_LOG { get; set; } = false;
//BiliPlus Host
public static string HOST { get; set; } = "api.bilibili.com";
//BiliPlus EP Host
public static string EPHOST { get; set; } = "api.bilibili.com";
//BiliPlus Area
public static string AREA { get; set; } = "";

public static string WBI { get; set; } = "";
public static string WBI { get; set; } = "";

public static readonly Dictionary<string, string> qualitys = new() {
{"127","8K 超高清" }, {"126","杜比视界" }, {"125","HDR 真彩" }, {"120","4K 超清" }, {"116","1080P 高帧率" },
{"112","1080P 高码率" }, {"100","智能修复" }, {"80","1080P 高清" }, {"74","720P 高帧率" },
{"64","720P 高清" }, {"48","720P 高清" }, {"32","480P 清晰" }, {"16","360P 流畅" },
{"5","144P 流畅" }, {"6","240P 流畅" }
};
}
}
public static readonly Dictionary<string, string> qualitys = new() {
{"127","8K 超高清" }, {"126","杜比视界" }, {"125","HDR 真彩" }, {"120","4K 超清" }, {"116","1080P 高帧率" },
{"112","1080P 高码率" }, {"100","智能修复" }, {"80","1080P 高清" }, {"74","720P 高帧率" },
{"64","720P 高清" }, {"48","720P 高清" }, {"32","480P 清晰" }, {"16","360P 流畅" },
{"5","144P 流畅" }, {"6","240P 流畅" }
};
}
Loading

0 comments on commit 77de9cc

Please sign in to comment.