mirror of
https://github.com/91270/MeiamSubtitles.git
synced 2026-03-20 11:57:05 +08:00
- 修复:针对射手网 API 年久失修、无结果时返回乱码或非法内容的问题,增加了 JSON 合法性校验逻辑,确保插件在异常返回下能静默退出而不崩溃。 - 优化:执行了全量代码格式化 (dotnet format),确保缩进、换行及代码风格符合 .NET 官方规范。 - 维护:清理了所有项目中不再使用的提示性条目逻辑,保持代码简洁。
32 lines
872 B
C#
32 lines
872 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Emby.MeiamSub.Thunder.Model
|
|
{
|
|
|
|
public class SubtitleResponseRoot
|
|
{
|
|
public int Code { get; set; }
|
|
public List<SublistItem> Data { get; set; }
|
|
public string Result { get; set; }
|
|
}
|
|
|
|
public class SublistItem
|
|
{
|
|
public string Gcid { get; set; }
|
|
public string Cid { get; set; }
|
|
public string Url { get; set; }
|
|
public string Ext { get; set; }
|
|
public string Name { get; set; }
|
|
public int Duration { get; set; }
|
|
public string[] Languages { get; set; }
|
|
|
|
public string Langs => Languages != null ? string.Join(",", Languages) : string.Empty;
|
|
|
|
public int Source { get; set; }
|
|
public int Score { get; set; }
|
|
public int FingerprintfScore { get; set; }
|
|
public string ExtraName { get; set; }
|
|
}
|
|
|
|
}
|