mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-02-02 17:59:58 +08:00
Support tencent danmu
This commit is contained in:
@@ -143,5 +143,25 @@ namespace Jellyfin.Plugin.Danmu.Test
|
||||
}).GetAwaiter().GetResult();
|
||||
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestGetDanmuContent()
|
||||
{
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
var api = new Tencent(loggerFactory);
|
||||
var media = await api.GetDanmuContent(new Movie(), "c0034tn5bx8");
|
||||
Console.WriteLine(media);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}).GetAwaiter().GetResult();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,10 @@ public class ScraperDanmakuText : IXmlSerializable
|
||||
/// </summary>
|
||||
public int Mode { get; set; }
|
||||
public int Fontsize { get; set; } = 25; //文字大小
|
||||
public uint Color { get; set; } //弹幕颜色
|
||||
/// <summary>
|
||||
/// 弹幕颜色,默认白色
|
||||
/// </summary>
|
||||
public uint Color { get; set; } = 16777215;
|
||||
public string MidHash { get; set; } //发送者UID的HASH
|
||||
public string Content { get; set; } //弹幕内容
|
||||
public long Ctime { get; set; } //发送时间
|
||||
|
||||
Reference in New Issue
Block a user