dd-danmaku icon indicating copy to clipboard operation
dd-danmaku copied to clipboard

搜索弹幕后无法正常显示

Open LoCCai opened this issue 10 months ago • 1 comments

Version

  • emby version.
  • emby-danmaku version.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

手动匹配弹幕 index.html#!/videoosd/videoosd.html:1 Access to fetch at 'https://api.dandanplay.net/api/v2/search/episodes?anime=%E8%AF%B7%E5%90%83%E7%BA%A2%E5%B0%8F%E8%B1%86%E5%90%A7%EF%BC%81&withRelated=true' from origin 'h********' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. emby.danmaku.js:311

    GET https://api.dandanplay.net/api/v2/search/episodes?anime=%E8%AF%B7%E5%90%83%E7%BA%A2%E5%B0%8F%E8%B1%86%E5%90%A7%EF%BC%81&withRelated=true net::ERR_FAILED 200 (OK)

查询失败: TypeError: Failed to fetch at getEpisodeInfo (emby.danmaku.js:311:35) emby.danmaku.js:324 查询成功 TypeError: Cannot read properties of null (reading 'animes') at list2string (emby.danmaku.js:525:35) at getEpisodeInfo (emby.danmaku.js:335:39)

实际这个链接正常返回了红小豆的弹幕信息 https://api.dandanplay.net/api/v2/search/episodes?anime=%E8%AF%B7%E5%90%83%E7%BA%A2%E5%B0%8F%E8%B1%86%E5%90%A7%EF%BC%81&withRelated=true

LoCCai avatar Apr 21 '24 13:04 LoCCai

修改了一处信息,即判断是否加载的第一行,改为了我的服务器名称。

LoCCai avatar Apr 21 '24 13:04 LoCCai