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

Server Query on Get Streaming Links return "cheerio.load() expects a string" when using HD server. #31

Closed
spookynova opened this issue Mar 16, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@spookynova
Copy link

Describe the bug

When i adding 'server' query with hd-1 or hd-2, it will return 'cheerio.load() expects a string'.

Expected behavior

Example Links
https://api-aniwatch.onrender.com/anime/episode-srcs?id=frieren-beyond-journeys-end-18542%3Fep%3D107257&server=hd-1

what i expected is

{
"tracks": [
{
"file": "https://s.megastatics.com/subtitle/9b258ea774bfd06f85f682f4fa38128e/eng-2.vtt",
"label": "English",
"kind": "captions",
"default": true
},
],
"intro": {
"start": 0,
"end": 89
},
"outro": {
"start": 1460,
"end": 1549
},
"sources": [
{
"url": "someurl",
"type": "hls"
}
],
"anilistID": 154587,
"malID": 52991
}

Actual behavior

But what i got is

{
"status": 500,
"message": "cheerio.load() expects a string"
}

Additional context

But when i'm using 'vidstreaming' server, it's workin fine. Btw thanks for your works, i really appreciate it.

@spookynova spookynova added the bug Something isn't working label Mar 16, 2024
@ghoshRitesh12
Copy link
Owner

Well they have just named the servers as hd-1 and hd-2. It's just vidstreaming and megacloud underneath.

@ghoshRitesh12
Copy link
Owner

@evnx32, I hope that clears the issue. If there's anything more, do reopen this issue.

@yusuftuncay
Copy link

Same issue here, but I see that it doesn't work on hianime.to either, just sometimes.. Spent a good couple hours implementing this feature, just to know that it doesn't work xD. There it is, a dropdown that does nothing.

image

@ghoshRitesh12
Copy link
Owner

Same issue here, but I see that it doesn't work on hianime.to either, just sometimes.. Spent a good couple hours implementing this feature, just to know that it doesn't work xD. There it is, a dropdown that does nothing.

image

😂 It's all hianime man. If they have it then we have it. I am sorry for those hours you spent building that feature.

@yusuftuncay
Copy link

yusuftuncay commented Jul 19, 2024

Nah obviously don't need to be sorry! Sorry for sounding so rude. I tried the fix of yesterday but episodes of different animes I tested still won't load hd-2 or hd-1, just vidstreaming. Anyway it isn't that important as every episode works anyway.

Nevermind, my code was wrong, but it works!

@ghoshRitesh12
Copy link
Owner

the thing is that older animes may not have hd-1 or hd-2 servers as they are relatively new

@WBRK-dev
Copy link
Contributor

I just checked an old anime from 2003 and it has the hd-1 and hd-2 servers.
Maybe I just got lucky there but it seems that vidstreaming and vidcloud were just renamed to hd-1 and hd-2.

@ghoshRitesh12
Copy link
Owner

I just checked an old anime from 2003 and it has the hd-1 and hd-2 servers. Maybe I just got lucky there but it seems that vidstreaming and vidcloud were just renamed to hd-1 and hd-2.

Yeah that is most likely

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

4 participants