feat: 支持弹幕下载 (#58)

* chore: 简单引入字幕模块(WIP)

* feat: 初步支持弹幕下载

* feat: 尝试在维持视频比例的基础上对齐视频高度,通过标记 'static 移除生命周期参数

* chore: 在数据库中记录视频页的宽高和长度

* fix: 修复各种错误,移除无用代码
This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2024-04-10 01:42:17 +08:00
committed by GitHub
parent d7026bed78
commit 4cbe2b495a
19 changed files with 898 additions and 80 deletions
Generated
+42 -1
View File
@@ -423,12 +423,15 @@ dependencies = [
"entity",
"env_logger",
"filenamify",
"float-ord",
"futures",
"handlebars",
"hex",
"log",
"memchr",
"migration",
"once_cell",
"prost",
"quick-xml",
"rand",
"regex",
@@ -1001,6 +1004,12 @@ dependencies = [
"miniz_oxide",
]
[[package]]
name = "float-ord"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ce81f49ae8a0482e4c55ea62ebbd7e5a686af544c00b9d090bba3ff9be97b3d"
[[package]]
name = "flume"
version = "0.11.0"
@@ -1528,6 +1537,15 @@ version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]]
name = "itertools"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
dependencies = [
"either",
]
[[package]]
name = "itertools"
version = "0.12.1"
@@ -2149,6 +2167,29 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "prost"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922"
dependencies = [
"bytes",
"prost-derive",
]
[[package]]
name = "prost-derive"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48"
dependencies = [
"anyhow",
"itertools 0.10.5",
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "psl-types"
version = "2.0.11"
@@ -2857,7 +2898,7 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce81b7bd7c4493975347ef60d8c7e8b742d4694f4c49f93e0a12ea263938176c"
dependencies = [
"itertools",
"itertools 0.12.1",
"nom",
"unicode_categories",
]