mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-02-02 17:59:58 +08:00
fix: tencent filter some episodes which is not primary
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Jellyfin.Plugin.Danmu.Test
|
||||
{
|
||||
try
|
||||
{
|
||||
var vid = "m441e3rjq9kwpsc";
|
||||
var vid = "mzc00200y41tzil";
|
||||
var api = new TencentApi(loggerFactory);
|
||||
var result = await api.GetVideoAsync(vid, CancellationToken.None);
|
||||
Console.WriteLine(result);
|
||||
|
||||
@@ -116,7 +116,10 @@ public class TencentApi : AbstractApi
|
||||
&& result.Data.ModuleListDatas.First().ModuleDatas != null
|
||||
&& result.Data.ModuleListDatas.First().ModuleDatas.First().ItemDataLists != null)
|
||||
{
|
||||
var episodes = result.Data.ModuleListDatas.First().ModuleDatas.First().ItemDataLists.ItemDatas.Select(x => x.ItemParams).Where(x => x.IsTrailer != "1").ToList();
|
||||
var episodes = result.Data.ModuleListDatas.First().ModuleDatas.First()
|
||||
.ItemDataLists.ItemDatas.Select(x => x.ItemParams)
|
||||
.Where(x => x.IsTrailer != "1" && !x.Title.Contains("直拍") && !x.Title.Contains("彩蛋") && !x.Title.Contains("直播回顾"))
|
||||
.ToList();
|
||||
// 判断下数据是否相同,避免 api 更新导致死循环
|
||||
if (episodes.Count > 0 && episodes.Last().Vid == lastId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user