Compare commits

..
Author SHA1 Message Date
lanyeeee af82c293a9 feat: 支持下载SDR画质 2026-08-17 11:12:34 +08:00
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ impl BiliClient {
"bvid": bvid,
"cid": cid,
"qn": 127,
"fnval": 4048,
"fnval": 139216,
});
// 发送获取普通url的请求
let request = self
@@ -217,9 +217,6 @@ impl DownloadProgress {
self.prepare(app).await.wrap_err("准备下载失败")?;
self.completed_ts = None; // 重置完成时间戳
download_task.update_progress(|p| *p = self.clone());
let progress_before_hook = self.clone();
app.get_plugin_manager()
.run_hook(HookContext::AfterPrepare(AfterPrepareContext::new(self)))
@@ -228,6 +225,9 @@ impl DownloadProgress {
download_task.update_progress(|p| *p = self.clone());
}
self.completed_ts = None; // 重置完成时间戳
download_task.update_progress(|p| *p = self.clone());
std::fs::create_dir_all(&self.episode_dir)
.wrap_err(format!("创建目录`{}`失败", self.episode_dir.display()))?;
@@ -250,7 +250,6 @@ impl DownloadProgress {
tracing::debug!("音频下载任务完成");
}
*self = download_task.progress.read().clone();
let progress_before_hook = self.clone();
app.get_plugin_manager()
.run_hook(HookContext::BeforeVideoProcess(
@@ -325,7 +324,6 @@ impl DownloadProgress {
download_task.update_progress(|p| p.completed_ts = Some(completed_ts));
}
*self = download_task.progress.read().clone();
let progress_before_hook = self.clone();
app.get_plugin_manager()
.run_hook(HookContext::OnCompleted(OnCompletedContext::new(self)))
+1 -1
View File
@@ -172,7 +172,7 @@ pub struct PaidJump {
pub struct Payment {
pub bp_enough: i64,
pub desc: String,
pub my_bp: f64,
pub my_bp: i64,
pub pay_shade: String,
pub price: f64,
pub price_format: String,