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

Bug in zoro provider #408

Open
IrfanKhan66 opened this issue Apr 24, 2023 · 1 comment
Open

Bug in zoro provider #408

IrfanKhan66 opened this issue Apr 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@IrfanKhan66
Copy link

Describe the bug

When I try to fetch any specific anime info from the provider - zoro, then the "subOrDub" field remains the same for all, it only shows "sub" value neither dub or both

Steps to reproduce

  1. fetch animes from api.consumet.org/anime/zoro...
  2. select any specific anime from the provider
  3. the value of "subOrDub" remains same for all

Expected behavior

The "subOrDub" field should display if the specific anime is available in subbed or dubbed version

Actual behavior

The field displays only "sub" value for every anime and serves it's corresponding subbed episode ID's

Additional context

No response

@IrfanKhan66 IrfanKhan66 added the bug Something isn't working label Apr 24, 2023
@kaustuv90
Copy link

@IrfanKhan66 I think Zoro updated their site Code so it can't find the proper value.
To solve this issue you can follow this till the dev solve it officially.
Go to node_modules > @consumet > extensions > dist > providers > anime Then Open File zoro.js
replace line no 90-101 with this code.
Replace This
const subDub = $('div.film-stats span.item div.tick-dub') .toArray() .map(value => $(value).text().toLowerCase()); if (subDub.length > 1) { info.subOrDub = models_1.SubOrSub.BOTH; } else if (subDub.length > 0) { info.subOrDub = subDub[0]; } else { info.subOrDub = models_1.SubOrSub.SUB; }

With this
const subDub = $('div.film-stats div.tick div.tick-dub') .toArray() .map(value => $(value).text().toLowerCase()); if (subDub.length > 0) { info.subOrDub = models_1.SubOrSub.BOTH; } else { info.subOrDub = models_1.SubOrSub.SUB; }

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

2 participants