Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搜索弹幕后无法正常显示 #59

Open
LoCCai opened this issue Apr 21, 2024 · 1 comment
Open

搜索弹幕后无法正常显示 #59

LoCCai opened this issue Apr 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LoCCai
Copy link

LoCCai commented Apr 21, 2024

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 LoCCai added the bug Something isn't working label Apr 21, 2024
@LoCCai
Copy link
Author

LoCCai commented Apr 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant