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

Animxplay mega source not scraped #170

Closed
abdelaziz-mahdy opened this issue Aug 8, 2022 · 8 comments
Closed

Animxplay mega source not scraped #170

abdelaziz-mahdy opened this issue Aug 8, 2022 · 8 comments
Labels
bug: site error The site fails at my face.

Comments

@abdelaziz-mahdy
Copy link

abdelaziz-mahdy commented Aug 8, 2022

Describe the bug

animxplay when an episode is uploaded like 30 mmiuntes ago the source will be mega
example from website html is

"6":"https://mega.nz/embed/WD4XFQDD#Utyvsx4AicLnEQ5AxAzlgiwqIKEJkD3d6ZfhY-PGs3A"

and the scraper doesnt get a link for it

Did the error occur in between an active task (download / stream / grab)?
all of them

Screenshots [Optional]
image

Additional information

  • v1.6.21
  • animixplay.to
@abdelaziz-mahdy abdelaziz-mahdy added the bug: site error The site fails at my face. label Aug 8, 2022
@justfoolingaround
Copy link
Owner

Which anime does this?

This is because a Mega extractor hasn't yet been added and it could potentially be impossible since it has chunked encryption on downloads.

@abdelaziz-mahdy
Copy link
Author

https://animixplay.to/v1/tensei-kenja-no-isekai-life-dai-2-no-shokugyou-wo-ete-sekai-saikyou-ni-narimashita/ep7

that is the anime but now its converted to
"6":"//goload.io/streaming.php?id=MTkwMjgy&title=Tensei+Kenja+no+Isekai+Life%3A+Dai-2+no+Shokugyou+wo+Ete%2C+Sekai+Saikyou+ni+Narimashita+Episode+7"

and that works well in your code

if mega can be added i would love it

thank you for the awesome repo♥

@abdelaziz-mahdy
Copy link
Author

@justfoolingaround
i am sorry for the mention

but i wanted to ask
it has chunked encryption on downloads.

that means players like vlc will fail to play it too?

or only downloader will fail?

@justfoolingaround
Copy link
Owner

Basically, direct playback wouldn't work.

Downloading with a custom downloader will work: the one used by Mega over their site itself.

To make both work robustly, a webserver which would return the decrypted content through sent parameters would be required.

@abdelaziz-mahdy
Copy link
Author

So basically it will require another api to decrypt content of files
And that is outside the scope of this project from my understanding

(question: doesn't mega provide decryption key and value of the encrypted content ) like how m3u8 files does?

@justfoolingaround
Copy link
Owner

Decryption is not a problem at all. I can deal with cryptography. It is just that a webserver would defeat the light-weight factor of the project itself.

It is implementable as an optional feature which would include Flask.

@abdelaziz-mahdy
Copy link
Author

Yeah i get that making a web worker/ api will make the package slower (at least in that case)

But what I don't get is why we need it 😃 if decryption can be made using python (flask) why it won't work in your code?

I am sorry if I am wasting your time, but I am trying to understand because maybe I can help with it

@justfoolingaround
Copy link
Owner

Sorry for the extremely late response.

This is always possible without an external dependency. However, animdl as a project needs to remain robust. Downloading from Mega would require a custom download algorithm. Flask or any webserver would be ideal as we would be able to simply send decrypted bytes from localhost and treat it like a normal download.

The current project structure would not be suitable for Mega.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: site error The site fails at my face.
Projects
None yet
Development

No branches or pull requests

2 participants