feat: 添加开关,允许尝试下载未充电的视频 (#666)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2026-02-28 22:55:01 +08:00
committed by GitHub
parent fe13029e84
commit 2bd660efc9
5 changed files with 32 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ pub async fn fetch_video_details(
.map(|p| p.into_active_model(video_model.id))
.collect::<Vec<page::ActiveModel>>();
// 更新 video model 的各项有关属性
let mut video_active_model = view_info.into_detail_model(video_model);
let mut video_active_model = view_info.into_detail_model(video_model, config.try_upower_anyway);
video_source.set_relation_id(&mut video_active_model);
video_active_model.single_page = Set(Some(pages.len() == 1));
video_active_model.tags = Set(Some(tags.into()));