dsh-mikan 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # 更新日志
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### 新增
6
+
7
+ - **Nyaa 源检测预留**:状态条新增「Nyaa 可用 / 不可用」,可点击查看连接状态、填写自定义镜像、重新检测
8
+ - 检测优先级与 Bangumi 一致:有代理时优先官方主站,直连时优先镜像
9
+ - 配置项 `nyaaBase` 支持自定义镜像
10
+ - 资源接入计划在 0.3.0
11
+
12
+ ### 文档
13
+
14
+ - `docs/DETAIL.md` 精简:移除配置表与对话示例,功能表改用纯功能描述
15
+ - 统一「下载器」表述,不再出现「P2P 下载器」
16
+
3
17
  ## 0.2.1
4
18
 
5
19
  ### 新增
package/README.md CHANGED
@@ -27,7 +27,7 @@ dsh plugin --profile web add dsh-mikan
27
27
  4. 点某个字幕组 → 看它的作品列表,带语言标签,可「订阅本组」或按语言批量下载
28
28
  5. 订阅后出现在周历,卡片显示 `字幕组 已到 X / 全番 Y`
29
29
 
30
- 订阅只跟**指定字幕组**:该组出新集才通知,别组的进度只作参考(全番最新)。
30
+ 订阅只跟**指定字幕组**:该组出新集才通知。
31
31
 
32
32
  ## 配置
33
33
 
@@ -50,7 +50,7 @@ dsh plugin --profile web add dsh-mikan
50
50
  | `qbittorrentBase` | `http://127.0.0.1:8080` | qBittorrent WebUI 地址 |
51
51
  | `qbittorrentUser` / `qbittorrentPassword` | 空 | qB 凭据;qB 允许 localhost 免认证时可留空 |
52
52
  | `mikanBase` | 空 | 自定义蜜柑镜像;留空自动探测内置域名 |
53
- | `bgmBase` | 空 | 自定义 bgm API;留空用官方 + 内置目录镜像 |
53
+ | `bgmBase` | 空 | 自定义 Bangumi API;留空用官方 + 内置目录镜像 |
54
54
  | `savePath` | 空(必填) | 下载保存目录,未设置时下载会被拒绝 |
55
55
  | `proxy` | 空 | 本地代理地址,留空直连 |
56
56
  | `checkIntervalMinutes` | 30 | 后台检查间隔 |
@@ -70,7 +70,7 @@ BitComet 的用户名密码会从 `%APPDATA%\BitComet\BitComet.xml` 自动读取
70
70
 
71
71
  - **蜜柑镜像**:自动探测墙内 `mikanime.tv` 与墙外 `mikanani.me`,优先使用可用的一方
72
72
  - **作品列表**:走 `/Home/ExpandEpisodeTable`,不受 RSS 单组 100 条限制
73
- - **开播日**:有代理时优先官方 bgm API,直连时优先社区镜像目录(`bangumi.wiki/api/v1/mirrors`,缓存 1 小时)
73
+ - **开播日**:有代理时优先官方 Bangumi API,直连时优先社区镜像目录(`bangumi.wiki/api/v1/mirrors`,缓存 1 小时)
74
74
  - **更新检查**:RSS(最近 100 条足够覆盖新集)
75
75
 
76
76
  ## 界面状态
@@ -81,12 +81,12 @@ BitComet 的用户名密码会从 `%APPDATA%\BitComet\BitComet.xml` 自动读取
81
81
  |---|---|
82
82
  | 代理模式 / 直连模式 | — |
83
83
  | Mikan 可用 / 不可用 | 查看连接详情、填自定义镜像、重新检测 |
84
- | bgm 可用 / 不可用 | 同上 |
84
+ | Bangumi 可用 / 不可用 | 同上 |
85
85
  | 下载器 | 端口扫描结果、切换 BitComet / qBittorrent |
86
86
 
87
87
  ## 已知限制
88
88
 
89
- - 没有字幕组做的番剧只有标题,开播日依赖 bgm / AniList,都不可用时显示未知
89
+ - 没有字幕组做的番剧只有标题,开播日依赖 Bangumi / AniList,都不可用时显示未知
90
90
  - 剧场版 / OVA 的「放送日期」字段不可信,只用「放送开始」
91
91
  - 部分运营商封锁 Cloudflare 时,蜜柑会完全不可达(两个内置域名都在 CF 后面),此时只能走代理或填自定义镜像
92
92
  - 下载器接口返回值不可靠,一律以任务列表复核
package/client.js CHANGED
@@ -124,6 +124,7 @@ window.__ModuleLoader__.load({
124
124
  const [batchStats, setBatchStats] = useState(null);
125
125
  const [mikanBaseInput, setMikanBaseInput] = useState('');
126
126
  const [bgmBaseInput, setBgmBaseInput] = useState('');
127
+ const [nyaaBaseInput, setNyaaBaseInput] = useState('');
127
128
 
128
129
  const load = useCallback(async ({ autoCheck = false } = {}) => {
129
130
  try {
@@ -441,7 +442,7 @@ window.__ModuleLoader__.load({
441
442
  await postJson('/config', { bgmBase: bgmBaseInput.trim() });
442
443
  const r = await getJson('/state?refresh=1');
443
444
  setState(r);
444
- setNotice(r.bgm ? 'bgm 已连接' : 'bgm 不可用(需要代理,或填一个国内可达的镜像)');
445
+ setNotice(r.bgm ? 'Bangumi 已连接' : 'Bangumi 不可用(需要代理,或填一个国内可达的镜像)');
445
446
  } catch (e) {
446
447
  setNotice('保存失败:' + e.message);
447
448
  } finally {
@@ -449,6 +450,20 @@ window.__ModuleLoader__.load({
449
450
  }
450
451
  }, [bgmBaseInput]);
451
452
 
453
+ const saveNyaaBase = useCallback(async () => {
454
+ setBusy('nyaa');
455
+ try {
456
+ await postJson('/config', { nyaaBase: nyaaBaseInput.trim() });
457
+ const r = await getJson('/state?refresh=1');
458
+ setState(r);
459
+ setNotice(r.nyaa ? 'Nyaa 已连接' : 'Nyaa 不可用(需要代理,或填一个可用的镜像)');
460
+ } catch (e) {
461
+ setNotice('保存失败:' + e.message);
462
+ } finally {
463
+ setBusy('');
464
+ }
465
+ }, [nyaaBaseInput]);
466
+
452
467
  /* ---------- render ---------- */
453
468
 
454
469
  if (error) {
@@ -627,7 +642,11 @@ window.__ModuleLoader__.load({
627
642
  h(Pill, {
628
643
  ok: state.bgm,
629
644
  onClick: () => { setBgmBaseInput(state?.bgmCustom || ''); setDialog({ type: 'bgm' }); },
630
- }, 'bgm ' + (state.bgm ? '可用' : '不可用')),
645
+ }, 'Bangumi ' + (state.bgm ? '可用' : '不可用')),
646
+ h(Pill, {
647
+ ok: state.nyaa,
648
+ onClick: () => { setNyaaBaseInput(state?.nyaaCustom || ''); setDialog({ type: 'nyaa' }); },
649
+ }, 'Nyaa ' + (state.nyaa ? '可用' : '不可用')),
631
650
  h(Pill, {
632
651
  ok: state.downloader?.ok,
633
652
  onClick: () => setDialog({ type: 'downloader' }),
@@ -791,20 +810,41 @@ window.__ModuleLoader__.load({
791
810
  : h('div', { style: muted }, '加载作品中…'),
792
811
  h('div', { style: { ...muted, marginTop: 12 } }, '没有对应语言的作品会置灰。'))) : null,
793
812
 
813
+ dialog && dialog.type === 'nyaa' ? h(Overlay, {
814
+ title: 'Nyaa 连接', onClose: () => setDialog(null),
815
+ }, h('div', null,
816
+ h('div', { style: { marginBottom: 10, fontSize: 13 } },
817
+ state?.nyaa
818
+ ? `当前:可用${state.nyaaActive ? `(${String(state.nyaaActive).replace(/^https?:\/\//, '')})` : ''}`
819
+ : '当前:不可用'),
820
+ h('div', { style: { ...muted, marginBottom: 12, lineHeight: 1.7 } },
821
+ 'Nyaa 官方主站在墙外,直连通常无法访问。有代理时优先连主站,否则优先用镜像。'),
822
+ h('div', { style: { display: 'flex', gap: 8, flexWrap: 'wrap', marginBottom: 10 } },
823
+ h('input', {
824
+ value: nyaaBaseInput,
825
+ onChange: (e) => setNyaaBaseInput(e.target.value),
826
+ placeholder: '自定义镜像,如 https://nyaa.example',
827
+ style: { flex: 1, minWidth: 240, padding: '6px 8px' },
828
+ }),
829
+ h('button', { onClick: saveNyaaBase, disabled: Boolean(busy) }, busy === 'nyaa' ? '保存中…' : '保存并检测'),
830
+ h('button', { onClick: refreshEnv, disabled: Boolean(busy) }, busy === 'env' ? '检测中…' : '重新检测')),
831
+ h('div', { style: muted }, '留空则使用官方 nyaa.si(需要代理)。'),
832
+ )) : null,
833
+
794
834
  dialog && dialog.type === 'bgm' ? h(Overlay, {
795
- title: 'bgm 连接', onClose: () => setDialog(null),
835
+ title: 'Bangumi 连接', onClose: () => setDialog(null),
796
836
  }, h('div', null,
797
837
  h('div', { style: { marginBottom: 10, fontSize: 13 } },
798
838
  state?.bgm
799
839
  ? `当前:可用${state.bgmActive ? `(${String(state.bgmActive).replace(/^https?:\/\//, '')})` : ''}`
800
840
  : '当前:不可用'),
801
841
  h('div', { style: { ...muted, marginBottom: 12, lineHeight: 1.7 } },
802
- 'bgm.tv 用于补全开播日期。官方 API 在大陆需要代理;如果你有国内可达的镜像,填在下面。'),
842
+ 'Bangumi 用于补全开播日期。官方 API 在大陆需要代理;如果你有国内可达的镜像,填在下面。'),
803
843
  h('div', { style: { display: 'flex', gap: 8, flexWrap: 'wrap', marginBottom: 10 } },
804
844
  h('input', {
805
845
  value: bgmBaseInput,
806
846
  onChange: (e) => setBgmBaseInput(e.target.value),
807
- placeholder: '自定义 API,留空自动(官方 / api.bgm.lat)',
847
+ placeholder: '自定义 API,留空自动选择',
808
848
  style: { flex: 1, minWidth: 240, padding: '6px 8px' },
809
849
  }),
810
850
  h('button', { onClick: saveBgmBase, disabled: Boolean(busy) }, busy === 'bgm' ? '保存中…' : '保存并检测'),
package/docs/DETAIL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 蜜柑追番(dsh-mikan)
2
2
 
3
- 把「蜜柑计划的番剧更新」和「P2P 下载器」连起来的半自动追番工具:**自动发现 → 你确认 → 自动下载**。
3
+ 把「蜜柑计划的番剧更新」和「下载器」连起来的半自动追番工具:**自动发现 → 你确认 → 自动下载**。
4
4
 
5
5
  支持 BitComet 与 qBittorrent 两种下载器,可自动检测切换。
6
6
 
@@ -10,66 +10,29 @@
10
10
  |---|---|
11
11
  | 当季浏览 | 按当前月份自动判断季度,按放送星期折叠列出新番 |
12
12
  | 往季浏览 | 从近 12 年里选任意季度 |
13
- | 字幕组浏览 | 番剧 → 字幕组 → 作品,三级懒加载 |
14
- | 语言分类 | 作品按简体 / 繁体 / 多字幕(垃圾桶)三类标记 |
15
- | 批量下载 | 全部 / 简中 / 繁中 / 多字幕,数量实时统计,空类置灰 |
16
- | 订阅管理 | 番剧 + 字幕组(可多组),每组独立水位,运行时增删 |
17
- | 更新跟进 | 定时抓取,该组出新集才通知,别组进度只作参考 |
18
- | 追番周历 | 周一~周日分列,卡片显示各组进度 |
19
- | 静默关注 | 从周表下架但仍接收更新 |
20
- | 下载执行 | 单集或批量,确认后拼 magnet 调用下载器 |
13
+ | 字幕组浏览 | 番剧 → 字幕组 → 作品,逐层展开 |
14
+ | 语言分类 | 作品按简体 / 繁体 / 多字幕三类标记 |
15
+ | 批量下载 | 全部 / 简中 / 繁中 / 多字幕 |
16
+ | 订阅管理 | 番剧 + 字幕组(可多组),随时增删 |
17
+ | 更新跟进 | 定时检查,该组出新集时通知 |
18
+ | 追番周历 | 周一~周日分列,看每部番的更新 |
19
+ | 静默关注 | 不显示在周历,仍接收更新 |
20
+ | 下载执行 | 单集或批量,确认后发送给下载器 |
21
+ | 源检测 | Mikan / Bangumi / Nyaa 三个源分别检测,可自定义镜像 |
21
22
 
22
23
  ## 环境自适应
23
24
 
24
- 插件启动时自动探测环境:
25
+ 插件启动时自动探测三个来源:
25
26
 
26
- | 场景 | 蜜柑源 | 开播日源 |
27
+ | 来源 | 代理模式 | 直连模式 |
27
28
  |---|---|---|
28
- | 有可用代理 | 优先 `mikanani.me`(墙外) | 官方 bgm API(走代理) |
29
- | 无代理 | 优先 `mikanime.tv`(墙内) | 社区镜像目录里的 API |
29
+ | **Mikan** | 优先 `mikanani.me`(墙外) | 优先 `mikanime.tv`(墙内) |
30
+ | **Bangumi** | 官方 API(走代理) | 社区镜像目录里的 API |
31
+ | **Nyaa** | 官方 `nyaa.si`(走代理) | 优先自定义镜像 |
30
32
 
31
- - 蜜柑探测结果缓存 5 分钟
32
- - bgm 镜像目录(`bangumi.wiki/api/v1/mirrors`)缓存 1 小时,镜像不硬编码
33
+ - 自动选择当前网络可用的来源
33
34
  - 探测失败会降级,不会让整个插件报错
34
-
35
- ## 配置
36
-
37
- 在 profile 的 `cordis.patch.yml` 中为该行设置 `config`:
38
-
39
- ```yaml
40
- - id: dsh-mikan
41
- config:
42
- downloader: 'qbittorrent'
43
- qbittorrentBase: 'http://127.0.0.1:8080'
44
- savePath: 'D:\Downloads\Anime'
45
- proxy: 'http://127.0.0.1:7890'
46
- checkIntervalMinutes: 30
47
- ```
48
-
49
- | 字段 | 默认 | 说明 |
50
- |---|---|---|
51
- | `downloader` | `bitcomet` | 下载器后端:`bitcomet` 或 `qbittorrent` |
52
- | `bitcometBase` | `http://127.0.0.1:10816` | BitComet WebUI 地址 |
53
- | `qbittorrentBase` | `http://127.0.0.1:8080` | qBittorrent WebUI 地址 |
54
- | `qbittorrentUser` / `qbittorrentPassword` | 空 | qB 凭据;localhost 免认证时可留空 |
55
- | `mikanBase` | 空 | 自定义蜜柑镜像,留空自动探测 |
56
- | `bgmBase` | 空 | 自定义 bgm API,留空用官方 + 目录镜像 |
57
- | `savePath` | 空(必填) | 下载保存目录,未设置时下载会被拒绝 |
58
- | `proxy` | 空 | 本地代理地址,留空走直连 |
59
- | `checkIntervalMinutes` | 30 | 后台更新检查间隔 |
60
-
61
- BitComet 的用户名 / 密码会自动从 `%APPDATA%\BitComet\BitComet.xml` 读取,无需填写。
62
-
63
- ## 使用(对话内)
64
-
65
- ```
66
- 帮我看看这季有什么新番
67
- 「乱马1/2」有哪些字幕组在做
68
- 追「乱马1/2」,LoliHouse 的
69
- 检查一下有没有更新
70
- 把这组简中的都下了
71
- 下季度有什么新番,哪天开播
72
- ```
35
+ - Nyaa 目前只做连接检测,资源接入计划在 0.3.0
73
36
 
74
37
  ## 下载器配置要求
75
38
 
@@ -96,12 +59,13 @@ BitComet 的用户名 / 密码会自动从 `%APPDATA%\BitComet\BitComet.xml` 读
96
59
  |---|---|
97
60
  | 代理模式(绿)/ 直连模式(黄) | — |
98
61
  | Mikan 可用(绿)/ 不可用(红) | 连接详情、自定义镜像、重新检测 |
99
- | bgm 可用 / 不可用 | 连接详情、自定义 API、重新检测 |
62
+ | Bangumi 可用 / 不可用 | 连接详情、自定义 API、重新检测 |
63
+ | Nyaa 可用 / 不可用 | 连接详情、自定义镜像、重新检测(资源接入在 0.3.0) |
100
64
  | 下载器 | 端口扫描结果、切换 BitComet / qBittorrent |
101
65
 
102
66
  ## 已知限制
103
67
 
104
- 1. **无作品的番剧**在蜜柑只有 id/名称/封面,开播日依赖 bgm / AniList;都不可用时标注「未知」,不编造
68
+ 1. **无作品的番剧**在蜜柑只有 id/名称/封面,开播日依赖 Bangumi / AniList;都不可用时标注「未知」,不编造
105
69
  2. **剧场版 / OVA 的「放送日期」不可信**(页面显示周日),只用「放送开始」
106
70
  3. **运营商封锁 Cloudflare** 时蜜柑会完全不可达(两个内置域名都在 CF 后面),只能走代理或自定义镜像
107
71
  4. 下载器的添加 / 删除接口返回值不可靠,一律以任务列表复核结果为准
package/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
  import fs from 'node:fs/promises';
14
14
  import path from 'node:path';
15
15
 
16
- import { DEFAULT_CONFIG, MIKAN_INSIDE, MIKAN_OUTSIDE, BGM_API, COMMON_PROXY_PORTS } from './lib/constants.js';
16
+ import { DEFAULT_CONFIG, MIKAN_INSIDE, MIKAN_OUTSIDE, BGM_API, NYAA_OFFICIAL, COMMON_PROXY_PORTS } from './lib/constants.js';
17
17
  import { fetchBgmMirrors } from './lib/mirrors.js';
18
18
  import {
19
19
  createMikanClient,
@@ -223,6 +223,37 @@ export async function apply(ctx) {
223
223
  }
224
224
 
225
225
  const mikan = await detectMikanSource({ proxy: bgmViaProxy ? proxy : '', customBase: cfg.mikanBase || '' });
226
+
227
+ // nyaa: the official site is blocked from the mainland, so a direct
228
+ // connection prefers a user-supplied mirror. A proxy flips the order.
229
+ // Detection only — the source itself is wired up in a later release.
230
+ const customNyaa = String(cfg.nyaaBase || '').trim().replace(/\/+$/, '');
231
+ const officialNyaa = NYAA_OFFICIAL.replace(/\/+$/, '');
232
+ const nyaaPlan = [];
233
+ if (customNyaa) {
234
+ if (proxy) {
235
+ nyaaPlan.push({ base: officialNyaa, via: proxy }, { base: customNyaa, via: '' });
236
+ } else {
237
+ nyaaPlan.push({ base: customNyaa, via: '' }, { base: officialNyaa, via: '' });
238
+ }
239
+ } else {
240
+ nyaaPlan.push({ base: officialNyaa, via: proxy });
241
+ }
242
+ let nyaaOk = false;
243
+ let nyaaReason = 'unreachable';
244
+ let nyaaBase = customNyaa || officialNyaa;
245
+ let nyaaViaProxy = false;
246
+ for (const step of nyaaPlan) {
247
+ const r = await probeProxy(step.via, `${step.base}/`, 6000);
248
+ if (r.ok) {
249
+ nyaaOk = true;
250
+ nyaaBase = step.base;
251
+ nyaaViaProxy = Boolean(step.via);
252
+ nyaaReason = customNyaa && step.base === customNyaa ? 'custom' : 'official';
253
+ break;
254
+ }
255
+ nyaaReason = r.reason || 'unreachable';
256
+ }
226
257
  env = {
227
258
  at: Date.now(),
228
259
  proxy,
@@ -234,6 +265,10 @@ export async function apply(ctx) {
234
265
  mikanViaProxy: mikan.viaProxy,
235
266
  mikanReason: mikan.reason,
236
267
  mikanOk: mikan.reason !== 'all-probes-failed',
268
+ nyaaOk,
269
+ nyaaReason,
270
+ nyaaBase,
271
+ nyaaViaProxy,
237
272
  // "proxy" means the proxy actually carried a request, not that bgm happened
238
273
  // to be reachable through a direct mirror.
239
274
  mode: (bgmViaProxy || mikan.viaProxy) ? 'proxy' : 'direct',
@@ -508,6 +543,7 @@ export async function apply(ctx) {
508
543
  qbittorrentPassword: { type: 'string', description: 'qBittorrent password.' },
509
544
  mikanBase: { type: 'string', description: 'Custom Mikan mirror base URL. Empty means auto-detect between built-ins.' },
510
545
  bgmBase: { type: 'string', description: 'Custom bgm.tv API base. Empty means official api.bgm.tv, then mirrors from the community directory.' },
546
+ nyaaBase: { type: 'string', description: 'Custom nyaa mirror. Empty means official nyaa.si (needs a proxy).' },
511
547
  savePath: { type: 'string', description: 'Default download directory inside the downloader.' },
512
548
  checkIntervalMinutes: { type: 'number', description: 'Background check interval in minutes.' },
513
549
  },
@@ -516,7 +552,7 @@ export async function apply(ctx) {
516
552
  output: { schema: OBJ, render: renderJson },
517
553
  async execute(args) {
518
554
  const patch = {};
519
- for (const key of ['downloader', 'proxy', 'bitcometBase', 'qbittorrentBase', 'qbittorrentUser', 'qbittorrentPassword', 'mikanBase', 'bgmBase', 'savePath', 'checkIntervalMinutes']) {
555
+ for (const key of ['downloader', 'proxy', 'bitcometBase', 'qbittorrentBase', 'qbittorrentUser', 'qbittorrentPassword', 'mikanBase', 'bgmBase', 'nyaaBase', 'savePath', 'checkIntervalMinutes']) {
520
556
  if (args?.[key] !== undefined) patch[key] = args[key];
521
557
  }
522
558
  if (Object.keys(patch).length === 0) return { config: await loadConfig(), changed: false };
@@ -715,6 +751,9 @@ export async function apply(ctx) {
715
751
  bgmReason: e.bgmReason,
716
752
  bgmActive: e.bgmBase,
717
753
  bgmCustom: cfg.bgmBase || '',
754
+ nyaa: e.nyaaOk,
755
+ nyaaActive: e.nyaaBase,
756
+ nyaaCustom: cfg.nyaaBase || '',
718
757
  mikan: e.mikanBase,
719
758
  mikanViaProxy: e.mikanViaProxy,
720
759
  mikanOk: e.mikanOk,
@@ -1031,7 +1070,7 @@ export async function apply(ctx) {
1031
1070
  }
1032
1071
  if (route === '/config' && req.method === 'POST') {
1033
1072
  const body = await readBody(req);
1034
- const allowed = ['downloader', 'proxy', 'bitcometBase', 'qbittorrentBase', 'qbittorrentUser', 'qbittorrentPassword', 'mikanBase', 'bgmBase', 'savePath', 'checkIntervalMinutes'];
1073
+ const allowed = ['downloader', 'proxy', 'bitcometBase', 'qbittorrentBase', 'qbittorrentUser', 'qbittorrentPassword', 'mikanBase', 'bgmBase', 'nyaaBase', 'savePath', 'checkIntervalMinutes'];
1035
1074
  const patch = {};
1036
1075
  for (const key of allowed) {
1037
1076
  if (body[key] !== undefined) patch[key] = body[key];
package/lib/constants.js CHANGED
@@ -5,6 +5,8 @@
5
5
  export const MIKAN_INSIDE = 'https://mikanime.tv';
6
6
  export const MIKAN_OUTSIDE = 'https://mikanani.me';
7
7
  export const BGM_API = 'https://api.bgm.tv';
8
+ /** nyaa official site; mirrors are user-supplied until a directory exists. */
9
+ export const NYAA_OFFICIAL = 'https://nyaa.si';
8
10
  export const ANILIST_API = 'https://graphql.anilist.co';
9
11
 
10
12
  /** Common local proxy ports, tried by the auto-bridge when the user's port fails. */
@@ -42,6 +44,8 @@ export const DEFAULT_CONFIG = {
42
44
  mikanBase: '',
43
45
  /** Optional custom bgm.tv API base; empty means the official api.bgm.tv. */
44
46
  bgmBase: '',
47
+ /** Optional nyaa mirror; empty means the official nyaa.si. */
48
+ nyaaBase: '',
45
49
  /** Download directory inside the downloader; must be set before downloading. */
46
50
  savePath: '',
47
51
  /** Minutes between automatic update checks. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mikan",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Mikan Project tracker for DeepSeek Harness: browse current and past seasons, follow subgroups, and send confirmed releases to BitComet or qBittorrent.",
5
5
  "type": "module",
6
6
  "license": "MIT",