Support bilibili ugc collection

This commit is contained in:
cxfksword
2023-02-06 15:30:35 +08:00
parent ca09be8425
commit 3fab33f241
4 changed files with 67 additions and 2 deletions

View File

@@ -83,5 +83,25 @@ namespace Jellyfin.Plugin.Danmu.Test
}
}).GetAwaiter().GetResult();
}
[TestMethod]
public void TestGetVideoByBvidForCollectionAsync()
{
var bvid = "BV1z34y1h7yQ";
var _bilibiliApi = new BilibiliApi(loggerFactory);
Task.Run(async () =>
{
try
{
var result = await _bilibiliApi.GetVideoByBvidAsync(bvid, CancellationToken.None);
Console.WriteLine(result);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}).GetAwaiter().GetResult();
}
}
}