Skip to content

Commit

Permalink
增加设置项:
Browse files Browse the repository at this point in the history
- 【还原】:创建[收藏夹]达到上限后,将该收藏夹的视频移入默认收藏夹
  • Loading branch information
hzhilong committed Dec 29, 2024
1 parent 719c158 commit 2c638a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ protected <R> BusinessResult<List<R>> restoreList(String appendDir, String buNam
// 不允许失败继续,且内部项目遇到需跳出循环的异常
result.setFailed("还原失败" + e.getMessage());
break;
}else{
sleep(restoredList.size());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ private List<FavFolder> getFavFolders() throws BusinessException {

private void addFavFolder(FavFolder data) throws BusinessException {
if ((data.getAttr() >> 1 & 1) == 0) {
throw new BusinessException("默认收藏夹,无需创建");
// 默认收藏夹,无需创建
return;
}
ApiResult<FavFolder> apiResult = new ModifyApi<FavFolder>(client, user,
"https://api.bilibili.com/x/v3/fav/folder/add", FavFolder.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void initUI() {
"【还原】:忽略新账号现有的数据,直接还原", AppDataItem.DIRECT_RESTORE);
LayoutUtil.addGridBarY(contentPanel, directRestore, posY++);
AppCheckBoxSettingItem allowFailure = new AppCheckBoxSettingItem(
"【还原】:还原[关注]失败时,继续还原下一个数据", AppDataItem.ALLOW_FAILURE);
"【还原】:还原失败时,继续还原下一个数据", AppDataItem.ALLOW_FAILURE);
LayoutUtil.addGridBarY(contentPanel, allowFailure, posY++);
AppCheckBoxSettingItem favSaveDefault = new AppCheckBoxSettingItem(
"【还原】:创建[收藏夹]达到上限后,将该收藏夹的视频移入默认收藏夹",
Expand Down

0 comments on commit 2c638a3

Please sign in to comment.