Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Anime episodes Streaming links #83

Closed
PacaHat opened this issue Dec 10, 2024 · 194 comments
Closed

Anime episodes Streaming links #83

PacaHat opened this issue Dec 10, 2024 · 194 comments
Assignees
Labels
bug Something isn't working

Comments

@PacaHat
Copy link

PacaHat commented Dec 10, 2024

Describe the bug

API response don't have any streaming source

Expected behavior

{
success: true,
data: {
headers: {
Referer: string,
"User-Agent": string,
...
},
sources: [
{
url: string, // .m3u8 hls streaming file
isM3U8: boolean,
quality?: string,
},
{...}
],
subtitles: [
{
lang: "English",
url: string, // .vtt subtitle file
},
{...}
],
anilistID: number | null,
malID: number | null
}
}

Actual behavior

{
"success": true,
"results": {
"streamingLink": [
{
"id": "578153",
"type": "dub",
"link": [],
"tracks": [],
"server": "HD-1"
},
{
"id": "52961",
"type": "dub",
"link": [],
"tracks": [],
"server": "HD-2"
},

Additional context

No response

@PacaHat PacaHat added the bug Something isn't working label Dec 10, 2024
@ghoshRitesh12
Copy link
Owner

Give us some time, we are working to resolve this issue.

@PacaHat
Copy link
Author

PacaHat commented Dec 10, 2024

Ok take your time no problem 🤝

@Raaaaaaamim
Copy link

I am having the same issue
Screenshot 2024-12-10 221119

@lunacroz222
Copy link

me too, just trying to apply your API yesterday and it seems work, just in few hours and i cant access the video also. so its the encryption to the video sources got changed

@WBRK-dev
Copy link
Contributor

Duplicate of #82

@ReiSync
Copy link

ReiSync commented Dec 11, 2024

Same issue here!

@bindothorpe
Copy link

+1

What part of the application is failing? Is it the webscraper?

@ghoshRitesh12
Copy link
Owner

ghoshRitesh12 commented Dec 12, 2024

+1

What part of the application is failing? Is it the webscraper?

The application isn't failing, it's just that the aniwatch package responsible for getting scraped info is malfunctioning.

@animegers
Copy link

@ghoshRitesh12 it is fixable right?

@MetaHat
Copy link

MetaHat commented Dec 12, 2024

{
"success": true,
"data": {
"tracks": [],
"sources": [],
"anilistID": 9253,
"malID": 9253
}
}

Current response on api url

/api/v2/hianime/episode/sources?animeEpisodeId=steinsgate-3?ep=230&server=hd-1&category=dub

@bindothorpe
Copy link

+1

What part of the application is failing? Is it the webscraper?

The application isn't failing, it's just that the aniwatch package responsible for getting scraped info is malfunctioning.

Strange... I did not update my project to the latest version of this repo, but it broke inside my project. Could it be that HiAnime is tackeling webscrapers to prevent external users to use their database of videos?

@ghoshRitesh12
Copy link
Owner

+1

What part of the application is failing? Is it the webscraper?

The application isn't failing, it's just that the aniwatch package responsible for getting scraped info is malfunctioning.

Strange... I did not update my project to the latest version of this repo, but it broke inside my project. Could it be that HiAnime is tackeling webscrapers to prevent external users to use their database of videos?

@bindothorpe the thing is hianime uses megacloud.tv servers to store their videos. Now this video hosting provider has changed their mechanism of encrypting and decrypting data. That's why the project broke without having a version bump.

@bindothorpe
Copy link

+1

What part of the application is failing? Is it the webscraper?

The application isn't failing, it's just that the aniwatch package responsible for getting scraped info is malfunctioning.

Strange... I did not update my project to the latest version of this repo, but it broke inside my project. Could it be that HiAnime is tackeling webscrapers to prevent external users to use their database of videos?

@bindothorpe the thing is hianime uses megacloud.tv servers to store their videos. Now this video hosting provider has changed their mechanism of encrypting and decrypting data. That's why the project broke without having a version bump.

That makes sense. I wish you all the luck you need to find a solution! I will be checking this repo every couple days to check for further updates! Love the work you have done.

@animegers
Copy link

@ghoshRitesh12 can i have your discord?

@ghoshRitesh12
Copy link
Owner

@ghoshRitesh12 can i have your discord?

username: riteshgsh

@Shikiiii
Copy link

@ghoshRitesh12 Here is some useful information (in my opinion) about the changes from an issue on the Consumet library/API.
consumet/consumet.ts#623 (comment)
I hope it can help you in some way.

@Subhajeetch
Copy link

Subhajeetch commented Dec 13, 2024

@ghoshRitesh12 bro they are actually getting data with the new getSources url & parameters earlier I told you about...

Screenshot_20241213-230217

  const C4 = (C6, C7) => {
    var C8;
    var C9 = window.browser_version;
    const CC = window.localStorage && window.localStorage.getItem("kversion") || C9;
    var CX = window.localStorage && window.localStorage.getItem("kid") || "";
    if (window.pid == null) {
      console.log("=> pid null");
    } else {
      var CN = D(window);
      var CX = "/embed-2/ajax/e-1/getSources?id=" + window.pid + "&v=" + CC + "&h=" + CX + "&b=" + C9;
      const Cl = {
        sources: [],
        tracks: []
      };
      $.get(CX, function (CO) {
        var CB;
        if (b(CO.sources)) {
          Cl.sources = CO.sources;
        } else {
          C8 = y(CC);
          CB = CO.t != 0 ? (p(CN, C8), CN) : (CB = CO.k, p(CB, C8), CB);
          CB = btoa(String.fromCharCode.apply(null, new Uint8Array(CB)));
          Cl.sources = G(CO.sources, CB);
        }
        Cl.tracks = CO.tracks;
        C7(Cl);
      });
    }
  };

Ig this will help too...

@ghoshRitesh12
Copy link
Owner

Yeah, I guess this will help. Thanks a lot.

@Samy-glitch
Copy link

I hope this will help:
https://github.com/drblgn/rabbit_wasm/blob/main/rabbit.ts

@ReiSync
Copy link

ReiSync commented Dec 14, 2024

Good luck guys!

@anime-kun32
Copy link

Yep Good luck guys , hope you can fix this

@lunacroz222
Copy link

any update?

@ghoshRitesh12
Copy link
Owner

any update?

I was testing the source url extraction using puppeteer and although it works, wouldn't be a viable option for production.
I am now going thorough the deobfuscated code of megacloud e1-player.min.js file and trying to figure out a more efficient way of getting the correct URL params and then extracting the tracks info, sources, outro and intro information there on.

@Subhajeetch
Copy link

https://beautifier.io/
Use this to get proper deobfuscated code hmmmmmmmmmmmmm

@anime-kun32
Copy link

Could hianime have changed the structure like expected elements etc

@anime-kun32
Copy link

Or maybe I'm wrong ?

@ghoshRitesh12
Copy link
Owner

Or maybe I'm wrong ?

I don't think so

@anime-kun32
Copy link

anime-kun32 commented Dec 14, 2024

So I'm not wrong then am i ?

@ghoshRitesh12
Copy link
Owner

Its working for me. Did you update your version?

image
image

@AmanexDev
Copy link

same as mine.
{
"success": true,
"data": {
"tracks": [],
"intro": {
"start": 0,
"end": 0
},
"outro": {
"start": 0,
"end": 0
},
"sources": [],
"anilistID": 139095,
"malID": 49785
}
}

@Akai771
Copy link

Akai771 commented Dec 19, 2024

Its working for me. Did you update your version?

image image

Yes, I updated my version

@ghoshRitesh12
Copy link
Owner

Did you guys update to the latest version? I have tested the animeEpisodeId you gave in both a hosted version and with the package and they seem to work fine.

image

@ghoshRitesh12
Copy link
Owner

image

NVM got to reproduce the error and have pushed an update that would hopefully fix the issue.

@animegers
Copy link

@ghoshRitesh12 try as a user, download your own repo from github then run npm install and npm start through cmd see if it gives success respond on your end. i am getting no output on localhost but on terminal it shows success.

@animegers
Copy link

image

NVM got to reproduce the error and have pushed an update that would hopefully fix the issue.

well seems you figured it out..

@JabolDev
Copy link

image

NVM got to reproduce the error and have pushed an update that would hopefully fix the issue.

in my recent test before this, this was happening too,
so if you figure it out, its should be okay now and stable. cheers

@Akai771
Copy link

Akai771 commented Dec 19, 2024

it's working perfectly now. Thank you!

@ghoshRitesh12
Copy link
Owner

it's working perfectly now. Thank you!

Please check with several other animeEpisodeIds' and lemme know

@animegers
Copy link

it's working perfectly now. Thank you!

Please check with several other animeEpisodeIds' and lemme know

on it...

@anime-kun32
Copy link

thanks @ghoshRitesh12 it works perfectly fine

@MetaHat
Copy link

MetaHat commented Dec 19, 2024

@ghoshRitesh12 Its working on every animeId And EpisodeId

@shivang2607
Copy link

Thank you so much @ghoshRitesh12 and all others who contributed and worked overnight to bring back our beloved aniwatch-scraper.

We should sponsor/donate to the owner of this repo as appreciation for his hard work.

@anime-kun32
Copy link

i agree

@anime-kun32
Copy link

this api needs to keep running in order to feed the hungry wolves

@carlosesteven
Copy link

It's working perfectly now. Thank you!

@ghoshRitesh12 ghoshRitesh12 pinned this issue Dec 19, 2024
@NullRizz
Copy link

sup guys, has anyone deployed on vercel ?

@ghoshRitesh12
Copy link
Owner

sup guys, has anyone deployed on vercel ?

Yep

@ghoshRitesh12
Copy link
Owner

ghoshRitesh12 commented Dec 19, 2024

Hey guys, I was thinking of converting this issue to a discussion, mainly due to the number of participants and the open source community energy I get from this issue.
What do you say?

@shivang2607
Copy link

Hey guys, I was thinking of converting this issue to a discussion, mainly due to the number of participants and the open source community energy I get from this issue. What do you say?

That would be great

@animegers
Copy link

Hey guys, I was thinking of converting this issue to a discussion, mainly due to the number of participants and the open source community energy I get from this issue. What do you say?

That would be fun..

@PacaHat
Copy link
Author

PacaHat commented Dec 19, 2024

That would be great and now can someone help me find the new solo leveling movie..?

@NullRizz
Copy link

sup guys, has anyone deployed on vercel ?

Yep

l guess its my account on vercel with the prob, i'll use render no prob

@PacaHat
Copy link
Author

PacaHat commented Dec 19, 2024

sup guys, has anyone deployed on vercel ?

Yep

l guess its my account on vercel with the prob, i'll use render no prob

after updating your branch Just redeploy it manually; this will fix the issue.

@NullRizz
Copy link

sup guys, has anyone deployed on vercel ?

Yep

l guess its my account on vercel with the prob, i'll use render no prob

after updating your branch Just redeploy it manually; this will fix the issue.

worked thanks

@ghoshRitesh12
Copy link
Owner

Converting this issue into a discussion, feel free to continue with the discussions.

Repository owner locked and limited conversation to collaborators Dec 19, 2024
@ghoshRitesh12 ghoshRitesh12 converted this issue into discussion #88 Dec 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests