feat: 在线取清单改为不走 DHT — 优先 torrent 缓存服务(HTTPS),回退 webtorrent 仅 http/wss tracker

This commit is contained in:
ice-a
2026-10-16 19:26:02 +08:00
parent 52dfa409eb
commit 1db061ecb6
4 changed files with 96 additions and 45 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ async function logout() {
<div class="topbar-right">
<span class="pill hide-sm" :class="health && !health.webTorrent ? 'warn' : ''">
<i class="dot" />
{{ health?.webTorrent ? '磁力解析就绪' : '磁力解析不可用' }}
{{ health?.webTorrent ? '磁力解析就绪' : '磁力解析(缓存模式)' }}
</span>
<NuxtLink to="/settings" class="pill" :class="mongoPill.cls">
<i class="dot" />
+2 -2
View File
@@ -323,8 +323,8 @@ onMounted(load)
<span :class="health?.mongo.ok ? 'ok' : 'err'">{{ health?.mongo.ok ? '已连接' : '未连接' }}</span>
</dd>
<dt>磁力解析</dt>
<dd :class="health?.webTorrent ? 'ok' : 'err'">
{{ health?.webTorrent ? 'webtorrent 可用,可通过 DHT/tracker 取文件清单' : 'webtorrent 不可用,磁力链只能显示 infoHash' }}
<dd :class="health?.webTorrent ? 'ok' : 'warn'">
{{ health?.webTorrent ? 'webtorrent 可用,可通过 DHT/tracker 取文件清单' : 'webtorrent 不可用,但通过 torrent 缓存服务在线取清单(不走 DHT)' }}
</dd>
<dt>搜索源</dt>
<dd class="mono small">{{ health?.providers?.map((p) => p.label).join(' / ') }}</dd>
+2 -2
View File
@@ -10,7 +10,7 @@ export const zh2en: Record<string, string> = {
'设置': 'Settings',
'MONGO 未连接': 'MONGO disconnected',
'磁力解析就绪': 'Magnet parsing ready',
'磁力解析不可用': 'Magnet parsing unavailable',
'磁力解析(缓存模式)': 'Magnet parsing (cache mode)',
'本地自托管 · 单进程 Nuxt 单体应用': 'Self-hosted · single-process Nuxt app',
'种子只做解析与预览,文件内容由你自己的下载器拉取': 'Torrents are only parsed and previewed; file contents are fetched by your own download client',
@@ -215,7 +215,7 @@ export const zh2en: Record<string, string> = {
'已连接': 'Connected',
'磁力解析': 'Magnet parsing',
'webtorrent 可用,可通过 DHT/tracker 取文件清单': 'webtorrent available; can fetch file list via DHT/tracker',
'webtorrent 不可用,磁力链只能显示 infoHash': 'webtorrent unavailable; magnet links can only show infoHash',
'webtorrent 不可用,但通过 torrent 缓存服务在线取清单(不走 DHT)': 'webtorrent unavailable, but online file list via torrent cache (no DHT)',
// ===== 输入框占位符 =====
'输入片名 / 剧名 / 关键词,回车搜索': 'Movie / show / keyword, press Enter to search',