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 +1 -1
- package/src/host.js +1 -1
- package/src/xyz.js +1 -0
package/package.json
CHANGED
package/src/host.js
CHANGED
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 = {
|