Support tencent danmu

This commit is contained in:
cxfksword
2023-02-18 15:00:33 +08:00
parent ca922ced04
commit d928123226
2 changed files with 24 additions and 1 deletions

View File

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

View File

@@ -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; } //发送时间