Update README.md

This commit is contained in:
cxfksword
2023-02-02 22:31:34 +08:00
parent db3cb61f43
commit a6d84d32eb
2 changed files with 15 additions and 3 deletions

View File

@@ -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";

View File

@@ -4,7 +4,7 @@
[![Danmu](https://img.shields.io/badge/jellyfin-10.8.x-lightgrey?logo=jellyfin)](https://github.com/cxfksword/jellyfin-plugin-danmu/releases)
[![Danmu](https://img.shields.io/github/license/cxfksword/jellyfin-plugin-danmu)](https://github.com/cxfksword/jellyfin-plugin-danmu/main/LICENSE)
jellyfin弹幕自动下载插件已支持的弹幕来源b站弹弹play优酷。
jellyfin弹幕自动下载插件已支持的弹幕来源b站弹弹play优酷。
支持功能:
@@ -13,7 +13,7 @@ jellyfin的弹幕自动下载插件已支持的弹幕来源b站弹弹pl
* 定时更新
* 支持api访问弹幕
![preview](doc/logo.png)
![logo](doc/logo.png)
## 安装插件