mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-02-02 17:59:58 +08:00
fix iqiyi
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);
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user