fix iqiyi

This commit is contained in:
cxfksword
2024-04-30 22:36:01 +08:00
parent 3120675d98
commit 7e2b62de3e
6 changed files with 79 additions and 69 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);
}
@@ -51,8 +51,8 @@ namespace Jellyfin.Plugin.Danmu.Test
{
try
{
// var id = "25f5iplvm8s"; // 综艺
var id = "xkt6z3z798"; // 电视剧
var id = "25f5iplvm8s"; // 综艺
// var id = "19tfhh8axvc"; // 电视剧
// var id = "1e54n0pt5ro"; // 电影
var result = await api.GetVideoAsync(id, CancellationToken.None);
Console.WriteLine(result);
@@ -73,7 +73,7 @@ namespace Jellyfin.Plugin.Danmu.Test
{
try
{
var albumId = "7765466759502501";
var albumId = "252894801";
var result = await api.GetZongyiEpisodesAsync(albumId, CancellationToken.None);
Console.WriteLine(result);
}
@@ -125,5 +125,6 @@ namespace Jellyfin.Plugin.Danmu.Test
}).GetAwaiter().GetResult();
}
}
}

View File

@@ -175,5 +175,28 @@ namespace Jellyfin.Plugin.Danmu.Test
}).GetAwaiter().GetResult();
}
[TestMethod]
public void TestGetEpisodesForApi()
{
var api = new Iqiyi(loggerFactory);
Task.Run(async () =>
{
try
{
var id = "25f5iplvm8s"; // 综艺
// var id = "19tfhh8axvc"; // 电视剧
// var id = "1e54n0pt5ro"; // 电影
var result = await api.GetEpisodesForApi(id);
Console.WriteLine(result);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}).GetAwaiter().GetResult();
}
}
}