Fix search filter

This commit is contained in:
cxfksword
2023-02-16 15:11:14 +08:00
parent 879d658967
commit 3deb60f747
3 changed files with 5 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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")]

View File

@@ -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();
}