@mr-quin/dango-manifests 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -93,6 +93,8 @@ https://cdn.jsdelivr.net/npm/@mr-quin/dango-manifests@<version>/<file>
93
93
  }
94
94
  ```
95
95
 
96
+ An entry also carries `minEngineVersion` when its manifest declares one. Gate entries with the engine's `checkManifestCompatibility` before fetching, so a host never installs a manifest its engine cannot run.
97
+
96
98
  Each `file` is the in-package path to fetch, e.g.:
97
99
 
98
100
  ```
package/catalog.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "packageVersion": "0.9.0",
2
+ "packageVersion": "0.10.0",
3
3
  "manifests": [
4
4
  {
5
5
  "id": "aiyifan",
@@ -18,14 +18,14 @@
18
18
  {
19
19
  "id": "bilibili",
20
20
  "name": "Bilibili",
21
- "version": "0.6.0",
21
+ "version": "0.7.0",
22
22
  "apiVersion": 1,
23
23
  "file": "src/manifests/bilibili.json"
24
24
  },
25
25
  {
26
26
  "id": "dandanplay",
27
27
  "name": "DanDanPlay",
28
- "version": "0.5.0",
28
+ "version": "0.6.0",
29
29
  "apiVersion": 1,
30
30
  "file": "src/manifests/dandanplay.json"
31
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mr-quin/dango-manifests",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Built-in dango manifests for danmaku sources",
5
5
  "author": "Mr-Quin",
6
6
  "license": "MIT",
@@ -6,13 +6,14 @@
6
6
  "zh-CN": {
7
7
  "name": "B站",
8
8
  "configSchema.properties.danmakuFormat.title": "弹幕格式",
9
- "configSchema.properties.danmakuFormat.description": "xml 是旧版接口,最多约 3000 条弹幕;protobuf 分页返回全部弹幕",
9
+ "configSchema.properties.danmakuFormat.oneOf.0.title": "Protobuf:获取全部弹幕,视频越长越慢",
10
+ "configSchema.properties.danmakuFormat.oneOf.1.title": "XML:获取较快,最多约 3000 条弹幕",
10
11
  "cookieSet.title": "登录B站",
11
12
  "configSchema.properties.includeUserUploads.title": "包含用户投稿",
12
13
  "configSchema.properties.includeUserUploads.description": "搜索时一并返回用户投稿(UGC)视频,而不仅是官方番剧库。默认关闭:UGC 结果较杂,且多为切片。"
13
14
  }
14
15
  },
15
- "version": "0.6.0",
16
+ "version": "0.7.0",
16
17
  "hosts": ["api.bilibili.com"],
17
18
  "urlMatch": [
18
19
  {
@@ -38,9 +39,18 @@
38
39
  "danmakuFormat": {
39
40
  "type": "string",
40
41
  "enum": ["xml", "protobuf"],
42
+ "oneOf": [
43
+ {
44
+ "const": "protobuf",
45
+ "title": "Protobuf: every comment, slower for long videos"
46
+ },
47
+ {
48
+ "const": "xml",
49
+ "title": "XML: faster, capped at about 3000 comments"
50
+ }
51
+ ],
41
52
  "default": "protobuf",
42
- "title": "Danmaku format",
43
- "description": "xml is the legacy endpoint capped at ~3000 comments; protobuf paginates and returns everything"
53
+ "title": "Danmaku format"
44
54
  },
45
55
  "includeUserUploads": {
46
56
  "type": "boolean",
@@ -6,7 +6,7 @@
6
6
  "zh-CN": {
7
7
  "name": "弹弹play",
8
8
  "configSchema.properties.baseUrl.title": "基础地址",
9
- "configSchema.properties.baseUrl.description": "弹弹play(或兼容)API 的根地址。默认为官方 https://api.dandanplay.net。指向代理或自建服务器即可覆盖。",
9
+ "configSchema.properties.baseUrl.description": "弹弹play 兼容 API 的根地址,例如代理或自建服务器。留空则使用官方 https://api.dandanplay.net,此时需要填写应用 ID 和应用密钥。",
10
10
  "configSchema.properties.appId.title": "应用 ID",
11
11
  "configSchema.properties.appId.description": "弹弹play 开放平台的 App ID。使用官方 API 时需填写;由代理在服务端签名时可留空。",
12
12
  "configSchema.properties.appSecret.title": "应用密钥",
@@ -17,19 +17,25 @@
17
17
  "configSchema.properties.auth.properties.headers.title": "请求头",
18
18
  "configSchema.properties.auth.properties.headers.items.properties.key.title": "请求头名称",
19
19
  "configSchema.properties.auth.properties.headers.items.properties.value.title": "值",
20
- "configSchema.properties.chConvert.title": "中文转换",
21
- "configSchema.properties.chConvert.description": "0 = 不转换,1 = 转为简体,2 = 转为繁体"
20
+ "configSchema.properties.chConvert.title": "简繁转换",
21
+ "configSchema.properties.chConvert.oneOf.0.title": "不转换",
22
+ "configSchema.properties.chConvert.oneOf.1.title": "转换成简体",
23
+ "configSchema.properties.chConvert.oneOf.2.title": "转换成繁体"
22
24
  }
23
25
  },
24
- "version": "0.5.0",
26
+ "version": "0.6.0",
25
27
  "hosts": ["*"],
26
28
  "configSchema": {
27
29
  "type": "object",
30
+ "anyOf": [
31
+ { "required": ["baseUrl"] },
32
+ { "required": ["appId", "appSecret"] }
33
+ ],
28
34
  "properties": {
29
35
  "baseUrl": {
30
36
  "type": "string",
31
37
  "title": "Base URL",
32
- "description": "Root of the DanDanPlay (or compatible) API. Defaults to the official https://api.dandanplay.net. Point this at a proxy or self-hosted server to override."
38
+ "description": "Root of a DanDanPlay-compatible API, such as a proxy or a self-hosted server. Leave empty to call the official https://api.dandanplay.net, which needs an App ID and App Secret."
33
39
  },
34
40
  "appId": {
35
41
  "type": "string",
@@ -68,9 +74,13 @@
68
74
  "chConvert": {
69
75
  "type": "integer",
70
76
  "enum": [0, 1, 2],
77
+ "oneOf": [
78
+ { "const": 0, "title": "No conversion" },
79
+ { "const": 1, "title": "Convert to simplified" },
80
+ { "const": 2, "title": "Convert to traditional" }
81
+ ],
71
82
  "default": 0,
72
- "title": "Chinese conversion",
73
- "description": "0 = no conversion, 1 = convert to simplified, 2 = convert to traditional"
83
+ "title": "Chinese conversion"
74
84
  }
75
85
  }
76
86
  },