mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-02-03 02:04:47 +08:00
2.8 KiB
2.8 KiB
jellyfin-plugin-danmu
jellyfin弹幕自动下载插件,已支持的弹幕来源:b站,弹弹play,优酷。
支持功能:
- 自动下载xml格式弹幕
- 生成ass格式弹幕
- 定时更新
- 支持api访问弹幕
安装插件
只支持最新的jellyfin 10.8.x版本
添加插件存储库:
国外访问:https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download/manifest/manifest.json
如何使用
- 新加入的影片会自动获取弹幕(只匹配番剧和电影视频),旧影片可以通过计划任务扫描媒体库匹配弹幕手动执行获取
- 可以在元数据中手动指定匹配的视频ID,如播放链接
https://www.bilibili.com/bangumi/play/ep682965,对应的视频ID就是682965 - 对于电视剧和动画,可以在元数据中指定季ID,如播放链接
https://www.bilibili.com/bangumi/play/ss1564,对应的季ID就是1564,只要集数和b站的集数的一致,并正确填写了集号,每季视频的弹幕会自动获取 - 同时生成ass弹幕,需要在插件配置中打开,默认是关闭的
电影或季元数据也支持手动指定BV号,来匹配UP主上传的视频弹幕。多P视频和剧集是按顺序一一对应匹配的,所以保证jellyfin中剧集有正确的集号很重要
支持的api接口
/plugin/danmu/{id}: 获取影片或剧集的xml弹幕链接,不存在时,url为空/plugin/danmu/raw/{id}: 获取影片或剧集的xml弹幕文件内容
如何播放
xml格式:
ass格式:
- PotPlayer (Windows)
- IINA (Mac)
- Infuse (Mac/iOS/iPadOS/AppleTV)
How to build
-
Clone or download this repository
-
Ensure you have .NET Core SDK setup and installed
-
Build plugin with following command.
$ dotnet restore
$ dotnet publish Jellyfin.Plugin.Danmu/Jellyfin.Plugin.Danmu.csproj
How to test
-
Build the plugin
-
Create a folder, like
Danmuand copybin/Release/Jellyfin.Plugin.Danmu.dllinto it -
Move folder
Danmuto jellyfindata/pluginsfolder
