mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-05-04 04:12:00 +08:00
Update README.md
This commit is contained in:
@@ -17,6 +17,7 @@ using MediaBrowser.Controller.Providers;
|
||||
using System.Runtime.InteropServices;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Dto;
|
||||
|
||||
namespace Jellyfin.Plugin.Danmu.Controllers
|
||||
{
|
||||
@@ -123,9 +124,20 @@ namespace Jellyfin.Plugin.Danmu.Controllers
|
||||
throw new ResourceNotFoundException();
|
||||
}
|
||||
|
||||
if (item is Movie || item is Series || item is Season || item is Episode)
|
||||
if (item is Movie || item is Season)
|
||||
{
|
||||
_libraryManagerEventsHelper.QueueItem(item, Model.EventType.Add);
|
||||
_libraryManagerEventsHelper.QueueItem(item, Model.EventType.Update);
|
||||
}
|
||||
|
||||
if (item is Series)
|
||||
{
|
||||
var seasons = ((Series)item).GetSeasons(null, new DtoOptions(false));
|
||||
foreach (var season in seasons)
|
||||
{
|
||||
_libraryManagerEventsHelper.QueueItem(season, Model.EventType.Add);
|
||||
_libraryManagerEventsHelper.QueueItem(season, Model.EventType.Update);
|
||||
}
|
||||
}
|
||||
|
||||
return "ok";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
[](https://github.com/cxfksword/jellyfin-plugin-danmu/releases)
|
||||
[](https://github.com/cxfksword/jellyfin-plugin-danmu/main/LICENSE)
|
||||
|
||||
jellyfin的弹幕自动下载插件,已支持的弹幕来源:b站,弹弹play,优酷。
|
||||
jellyfin弹幕自动下载插件,已支持的弹幕来源:b站,弹弹play,优酷。
|
||||
|
||||
支持功能:
|
||||
|
||||
@@ -13,7 +13,7 @@ jellyfin的弹幕自动下载插件,已支持的弹幕来源:b站,弹弹pl
|
||||
* 定时更新
|
||||
* 支持api访问弹幕
|
||||
|
||||

|
||||

|
||||
|
||||
## 安装插件
|
||||
|
||||
|
||||
Reference in New Issue
Block a user