sdaqo / anipy-cli

Little tool in python to watch and download anime from the terminal (the better way to watch anime). Also applicable as an API
https://sdaqo.github.io/anipy-cli
GNU General Public License v3.0
264 stars 39 forks source link

[Exception] Message: TypeError: document.getElementsByClassName(...)[2] is undefined #5

Closed WubzyGD closed 2 years ago

WubzyGD commented 2 years ago

Just installed anipy-cli.

I think this screenshot explains it best:

image

Know of any fix?

sdaqo commented 2 years ago

please just try again it should work, at my side it does at leas Screenshot_20211229_133156 Screenshot_20211229_133218

WubzyGD commented 2 years ago

yep still same error. tried a different anime as well

sdaqo commented 2 years ago

Could you try to add time.sleep(5) to src/url.py in line 48 and then try again.

WubzyGD commented 2 years ago

well that worked but now the episode isn't playing again image

WubzyGD commented 2 years ago

wait no i lied wrong terminal; bashrc still has my anime alias for ani-cli. it works, thanks!

sdaqo commented 2 years ago

Ok thats nice. The problem above is probably caused by the website not loading. I was going to implement something like "wait till website is loaded", but never did it because it was working fine for me. I will try to implement it.

WubzyGD commented 2 years ago

sweet! let me know if you do!