-
Notifications
You must be signed in to change notification settings - Fork 261
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
Fix(zoro): update the extractor in fetchEpisodeSources and update zoro domain. #482
Conversation
src/extractors/megacloud.ts
Outdated
server: number; | ||
}; | ||
|
||
class MegaCloud { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you extend VideoExtractor
here so then you can override the extract function and use this.client.get
instead of axios.get
, use other extractors as a reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the new commit.
src/extractors/megacloud.ts
Outdated
default?: boolean; | ||
}; | ||
|
||
type intro_outro = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type isn't needed, use Intro
imported from models instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the new commit.
src/extractors/megacloud.ts
Outdated
megacloud.script.concat(Date.now().toString()) | ||
); | ||
|
||
text = data; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to const test = data;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the new commit.
URL: /anime/zoro/watch?episodeId=...
Change class: rapidcloud.ts to: megacloud.ts
Reason: rapidcloud.ts class used static keys from a repository that no longer work. I replaced it with a class that extracts the decryption keys from the same code.
Use as a base this extractor code and adapt it to the consumet.ts
Did you add tests for your changes?
No, tests already exist.
Summary
Other information