dsh-podwave 0.11.2 → 0.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-podwave",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "DeepSeek Harness 插件:本地优先的播客播放器 + 转写 + 双语字幕 + 字幕翻译。",
5
5
  "type": "module",
6
6
  "main": "./src/host.js",
package/src/host.js CHANGED
@@ -454,7 +454,7 @@ async function route(ctx, req, res) {
454
454
  return json(res, 200, {
455
455
  ok: true,
456
456
  generatedAt: new Date().toISOString(),
457
- version: '0.11.2',
457
+ version: '0.11.3',
458
458
  platform,
459
459
  engine: recommendEngine(platform),
460
460
  paths: {
package/src/xyz.js CHANGED
@@ -301,6 +301,7 @@ export function playPublicEpisode(pid, eid) {
301
301
  const cached = PUBLIC_CACHE.get(String(pid))
302
302
  const episode = cached?.data?.episodes?.find((item) => item.eid === eid)
303
303
  if (!episode) throw new Error('请先加载播客单集')
304
+ if (episode.isPrivate) throw new Error('付费单集暂不支持在线播放')
304
305
  if (!episode.audioUrl) throw new Error('该单集没有公开音频(可能是付费内容)')
305
306
  const id = xyzId(eid)
306
307
  const item = {