MrKrabat / plugin.video.wakanim

Watch videos from the anime platform Wakanim.tv on Kodi
GNU Affero General Public License v3.0
10 stars 9 forks source link

Stuck on "Additional Security Check Is Required" #33

Open d4nl opened 3 years ago

d4nl commented 3 years ago

It seems wakanim has implemented a captcha that the plugin cannot, for obvious reasons, handle by itself.

My question is what can can be done?

captcha

d4nl commented 3 years ago

Let me answer my own question here. No, it makes no difference at all.

My guess is it's cookie-related.

MrKrabat commented 3 years ago

In the past, Wakanim's security check could be bypassed by first logging in using a web browser from the same network. Maybe it still works?

KyKyIIIKuH commented 3 years ago

not work, I checked

MrKrabat commented 3 years ago

Unfortunately we cannot do anything against this.

Wakanim uses Incapsula to protect their server. Incapsula is executing Javascript code to prove that the request is from a real browser. This is the end of this addon :(

KuroganeJan commented 3 years ago

That's sad. I've came across something, but since i have no Experience with Python or JS i don't understand if it could help. So i just leave it here. https://github.com/ziplokk1/incapsula-cracker-py3

MrKrabat commented 3 years ago

This unofficial addon was verified by a code review from Wakanim. Wakanim allowed the existence of this unofficial addon. I will not implement anything that circumvents Wakanim's security mechanisms.

There are options, but all would break the TOS of wakanim.

KuroganeJan commented 3 years ago

Understandable. Thx for the great work till now

MrKrabat commented 3 years ago

Right now it is working for me. Maybe they used Incapsula only temporary for some reasons?

Edit: Now it stopped working again 😂 Maybe a few requests work before the security check is triggered.

Lutho08 commented 3 years ago

hi i can't log on your addons i'm French with a premium wakanim count? do you have a fix ? thank you

Coren commented 3 years ago

It seems there is an api documented by wakanim here : http://account.wakanim.tv/Help

@MrKrabat Could this be possible to use it instead of scrapping website ?

KyKyIIIKuH commented 3 years ago

To solve the problem, use this:

install selenium addon https://github.com/nkvoronov/script.module.selenium

install docker addon https://forum.libreelec.tv/thread/6721-linuxserver-io-docker-addons-and-general-docker-info/

docker pull selenium/standalone-chrome https://hub.docker.com/r/selenium/standalone-chrome/

selenium-server-standalone https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar https://chromedriver.chromium.org/downloads

Checked it works.

Proof of https://ploader.ru/img/3PZwhxq4CcE.jpg https://ploader.ru/img/_VGSFC2IUr4.jpg https://ploader.ru/img/q7-bJ5YTP3Y.jpg https://ploader.ru/img/u3d-YalpnP0.jpg

MrKrabat commented 3 years ago

It seems there is an api documented by wakanim here : http://account.wakanim.tv/Help

@MrKrabat Could this be possible to use it instead of scrapping website ?

I dont think this is very usefull. This documention does not contain any informations about authentication and authorization. In my opinion this was published by accident.

I already thought of reverse engineering the wakanim api, but this will break the TOS. The windows uwp app is writen in javascript, so it is pretty easy to do.

LuckyTurtleDev commented 3 years ago

The Netflix Kodi plugin provide the option to login by using a key file to solve the captcha problem. May something similar is possible for Wakanim too.

C4ET4uK commented 3 years ago

To solve the problem, use this:

install selenium addon https://github.com/nkvoronov/script.module.selenium

install docker addon https://forum.libreelec.tv/thread/6721-linuxserver-io-docker-addons-and-general-docker-info/

docker pull selenium/standalone-chrome https://hub.docker.com/r/selenium/standalone-chrome/

selenium-server-standalone https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar https://chromedriver.chromium.org/downloads

Checked it works.

Proof of https://ploader.ru/img/3PZwhxq4CcE.jpg https://ploader.ru/img/_VGSFC2IUr4.jpg https://ploader.ru/img/q7-bJ5YTP3Y.jpg https://ploader.ru/img/u3d-YalpnP0.jpg

Can you please explain how does it work? It's just selenium for Kodi, correct?

KyKyIIIKuH commented 3 years ago

yes selenium, this solution doesn't work anymore

это селениум, но это уже не работает, они что-то поменяли

https://github.com/MrKrabat/plugin.video.wakanim/issues/34

MrKrabat commented 3 years ago

This addon will be deleted from the Kodi addon repository soon.

Fortunately, Wakanim offers a variety of apps for different platforms. Maybe one of them can be a replacement for you

LuckyTurtleDev commented 3 years ago

Does anyone plan to rewrite the add-on by using the wakanim api?