chore: 跑一遍 auto-correct (#468)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-09-24 18:50:47 +08:00
committed by GitHub
parent d35858790b
commit 3d25c6b321
24 changed files with 56 additions and 54 deletions
@@ -26,7 +26,7 @@ pub struct DanmakuOption {
pub bottom_percentage: f64,
/// 透明度(0-255
pub opacity: u8,
/// 是否加粗,1代表是,0代表否
/// 是否加粗,1 代表是,0 代表否
pub bold: bool,
/// 描边
pub outline: f64,
@@ -39,7 +39,7 @@ pub struct Danmu {
impl Danmu {
/// 计算弹幕的“像素长度”,会乘上一个缩放因子
///
/// 汉字算一个全宽,英文算2/3宽
/// 汉字算一个全宽,英文算 2/3
pub fn length(&self, config: &CanvasConfig<'_>) -> f64 {
let pts = config.danmaku_option.font_size
* self
+1 -1
View File
@@ -29,7 +29,7 @@ pub struct SubTitleItem {
impl SubTitleInfo {
pub fn is_ai_sub(&self) -> bool {
// ai aisubtitle.hdslb.com/bfs/ai_subtitle/xxxx
// 非 ai aisubtitle.hdslb.com/bfs/subtitle/xxxx
// 非 aiaisubtitle.hdslb.com/bfs/subtitle/xxxx
self.subtitle_url.contains("ai_subtitle")
}
}