feat: 支持弹幕下载 (#58)
* chore: 简单引入字幕模块(WIP) * feat: 初步支持弹幕下载 * feat: 尝试在维持视频比例的基础上对齐视频高度,通过标记 'static 移除生命周期参数 * chore: 在数据库中记录视频页的宽高和长度 * fix: 修复各种错误,移除无用代码
This commit is contained in:
@@ -84,6 +84,9 @@ impl MigrationTrait for Migration {
|
||||
.col(ColumnDef::new(Page::Cid).unsigned().not_null())
|
||||
.col(ColumnDef::new(Page::Pid).unsigned().not_null())
|
||||
.col(ColumnDef::new(Page::Name).string().not_null())
|
||||
.col(ColumnDef::new(Page::Width).unsigned())
|
||||
.col(ColumnDef::new(Page::Height).unsigned())
|
||||
.col(ColumnDef::new(Page::Duration).unsigned().not_null())
|
||||
.col(ColumnDef::new(Page::Path).string())
|
||||
.col(ColumnDef::new(Page::Image).string())
|
||||
.col(ColumnDef::new(Page::DownloadStatus).unsigned().not_null())
|
||||
@@ -173,6 +176,9 @@ enum Page {
|
||||
Cid,
|
||||
Pid,
|
||||
Name,
|
||||
Width,
|
||||
Height,
|
||||
Duration,
|
||||
Path,
|
||||
Image,
|
||||
DownloadStatus,
|
||||
|
||||
Reference in New Issue
Block a user