feat: 支持设置时间格式化字符串,支持在 video_name 和 page_name 中使用 time (#152)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2024-07-24 21:06:40 +08:00
committed by GitHub
parent 8f37fdf841
commit 75de39dfbb
3 changed files with 45 additions and 13 deletions

View File

@@ -324,6 +324,8 @@ pub async fn download_page(
"upper_mid": &video_model.upper_id,
"ptitle": &page_model.name,
"pid": page_model.pid,
"pubtime": video_model.pubtime.format(&CONFIG.time_format).to_string(),
"fav_time": video_model.favtime.format(&CONFIG.time_format).to_string(),
}),
)?);
let (poster_path, video_path, nfo_path, danmaku_path, fanart_path) = if is_single_page {