Skip to content

Commit

Permalink
chore: 更准确的额功能描述
Browse files Browse the repository at this point in the history
  • Loading branch information
nICEnnnnnnnLee committed Dec 8, 2024
1 parent f3e8267 commit 39c5088
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/nicelee/ui/Global.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public class Global {
public static int pageSize = 5; // 当有分页时,每页显示个数
@Config(key = "bilibili.pageDisplay", defaultValue = "listAll")
public static String pageDisplay = "listAll"; // 分页查询时,结果展示方式 listAll/promptAll(promptAll 逐渐弃用)
@Config(key = "bilibili.info.query.strategy", note = "查询清晰度时,使用的策略", defaultValue = "tryNormalTypeFirst", valids = { "tryNormalTypeFirst", "judgeTypeFirst", "returnFixedValue" })
@Config(key = "bilibili.info.query.strategy", note = "查询可用清晰度时,使用的策略", defaultValue = "tryNormalTypeFirst", valids = { "tryNormalTypeFirst", "judgeTypeFirst", "returnFixedValue" })
public static String infoQueryStrategy;
// 临时文件相关
@Config(key = "bilibili.restrictTempMode", defaultValue = "true", eq_true = "on", valids = { "on", "off" })
Expand Down
4 changes: 2 additions & 2 deletions src/nicelee/ui/item/MJMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ public void init(JRadioButtonMenuItem[] menuItems) {

String[] straOptions = { "tryNormalTypeFirst", "judgeTypeFirst", "returnFixedValue" };
String[] straOptionTips = { "先尝试普通类型,报错再尝试其它", "先判断类型再查询", "返回固定值" };
JMenu dQNQueryStrategyMenuItem = new MJMenuWithRadioGroupBuilder("清晰度查询策略", straOptionTips) {
JMenu dQNQueryStrategyMenuItem = new MJMenuWithRadioGroupBuilder("可用清晰度查询策略", straOptionTips) {

@Override
public void onItemSelected(int itemIndex, JRadioButtonMenuItem item) {
Global.infoQueryStrategy = straOptions[itemIndex];
Logger.println("清晰度查询策略为: " + straOptionTips[itemIndex]);
Logger.println("可用清晰度查询策略为: " + straOptionTips[itemIndex]);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bilibili.pageSize = 5
## listAll 所有选项在一个Tab页面里呈现
bilibili.pageDisplay = listAll

# 查询信息(视频清晰度)时,使用的策略
# 查询信息(可用视频清晰度)时,使用的策略
# tryNormalTypeFirst: 先尝试普通视频,报错后尝试其它类型; 1~2次网络请求
# judgeTypeFirst: 先判断类型; 2次网络请求
# returnFixedValue: 不查询,直接返回固定值 无网络请求
Expand Down

0 comments on commit 39c5088

Please sign in to comment.