You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
fetch animes from api.consumet.org/anime/zoro...
select any specific anime from the provider
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
The text was updated successfully, but these errors were encountered:
@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; }
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
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
The text was updated successfully, but these errors were encountered: