consumet / consumet.ts

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
https://consumet.org/extensions/list/
GNU General Public License v3.0
376 stars 205 forks source link

refactor(gogoanime): Refactor fetchEpisodeSources #514

Closed hase0278 closed 2 months ago

hase0278 commented 3 months ago

What kind of change does this PR introduce? Refactoring fetch episode sources for slightly faster direct download link generator. Basically just made sure to make download link point to updated domain since referer hostname = download hostname? Or is it not always the case? Because if it is not always the case please reject this PR.

riimuru commented 3 months ago

I'm not sure if that's always the case with gogoanime download domain, but this is a good approach in case they change domains.