Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
btjawa committed Feb 20, 2024
1 parent 9c277cd commit 988df50
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions UPDATE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Updater Log

## v1.1.1

包含BUG更新
- 修复: 下载相关
- 修复下载完成时的报错 "找不到指定的路径"
- 修正部分文本

## v1.1.0

包含逻辑/BUG更新,以及新功能
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bilitools",
"version": "1.1.0",
"version": "1.1.1",
"description": "bilibili工具箱,视频/番剧+伴音/音乐下载,三种登录方式,仅用作学习用途。",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ async fn process_queue(window: tauri::Window, date: String) -> Result<(), String
}

async fn process_download(window: tWindow, download_info: VideoInfo) -> Result<(), String> {
fs::create_dir_all(&download_info.output_path.parent().unwrap()).map_err(|e| handle_err(window.clone(), e))?;
let action = &download_info.action;
for task in &download_info.tasks {
if let Ok(_) = download_file(window.clone(), task.clone(), download_info.gid.clone()).await {
Expand Down Expand Up @@ -448,7 +449,6 @@ async fn merge_video_audio(window: tWindow, info: VideoInfo) -> Result<VideoInfo
let current_dir = env::current_dir().unwrap();
let ffmpeg_path = current_dir.join("ffmpeg").join("ffmpeg.exe");
let output_path = info.output_path.to_string_lossy();
fs::create_dir_all(&info.output_path.parent().unwrap()).map_err(|e| handle_err(window.clone(), e))?;
let video_filename = &info.output_path.file_name().unwrap().to_string_lossy();
let video_path = info.video_path.clone();
let audio_path = info.audio_path.clone();
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"package": {
"productName": "BiliTools",
"version": "1.1.0"
"version": "1.1.1"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ function appendCodecList(details, type, action, ms, block) { // 填充编码格
function appendAudioList(details, type, action, ms, block) { // 填充音频
const root = type == "bangumi" ? details.result : details.data;
const dms = $('<div>').addClass("video-block-opt-cont audio");
const text = $('<div>').addClass("video-block-opt-text").text("分辨率/画质");
const text = $('<div>').addClass("video-block-opt-text").text("比特率/音质");
const split = $('<div>').addClass("video-block-split");
const opt = $('<div>').addClass("video-block-opt audio");
const downBtn = $('<button>').addClass(`video-block-${action=="multi"?'video':'vaudio'}-down-btn ${action}`).text('下一步');
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
Expand Down

0 comments on commit 988df50

Please sign in to comment.