mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-02-02 17:59:58 +08:00
Fix search filter
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Jellyfin.Plugin.Danmu.Test
|
||||
{
|
||||
try
|
||||
{
|
||||
var keyword = "奔跑吧兄弟";
|
||||
var keyword = "回魂夜";
|
||||
var result = await api.SearchAsync(keyword, CancellationToken.None);
|
||||
Console.WriteLine(result);
|
||||
}
|
||||
@@ -72,7 +72,7 @@ namespace Jellyfin.Plugin.Danmu.Test
|
||||
{
|
||||
try
|
||||
{
|
||||
var albumId = "7765466759502501";
|
||||
var albumId = "7765466759502501";
|
||||
var result = await api.GetZongyiEpisodesAsync(albumId, CancellationToken.None);
|
||||
Console.WriteLine(result);
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace Jellyfin.Plugin.Danmu.Scrapers.Iqiyi.Entity
|
||||
}
|
||||
}
|
||||
}
|
||||
[JsonPropertyName("uploader_id")]
|
||||
public Int64 UploaderId { get; set; }
|
||||
[JsonPropertyName("siteId")]
|
||||
public string SiteId { get; set; }
|
||||
[JsonPropertyName("albumLink")]
|
||||
public string Link { get; set; }
|
||||
[JsonPropertyName("videoDocType")]
|
||||
|
||||
@@ -83,7 +83,7 @@ public class IqiyiApi : AbstractApi
|
||||
result = searchResult.Data.DocInfos
|
||||
.Where(x => x.Score > 0.7)
|
||||
.Select(x => x.AlbumDocInfo)
|
||||
.Where(x => !string.IsNullOrEmpty(x.Link) && x.Link.Contains("iqiyi.com") && x.VideoDocType == 1 && !x.Channel.Contains("原创"))
|
||||
.Where(x => !string.IsNullOrEmpty(x.Link) && x.Link.Contains("iqiyi.com") && x.SiteId == "iqiyi" && x.VideoDocType == 1 && !x.Channel.Contains("原创"))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user