kshitij1234 / Anime-Downloader

A user friendly interface to download complete Anime Series at one click
MIT License
15 stars 5 forks source link

Error when running #4

Open krewsayder opened 5 years ago

krewsayder commented 5 years ago

Get an error when attempting to run. Any thoughts? Using anime heaven.

image

krewsayder commented 5 years ago

I was doing some basic troubleshooting and it seems the error may stem from these 2 lines.

mylink=re.compile(r"href='(.*)'") downlink=mylink.search(str(dlink[4]))[1]

The error itself looks like the below after running the 2 rows together.

Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object is not subscriptable

I went through the dlink scripts manually and only found css files with any sort of regex that resembled "href".

kshitij1234 commented 5 years ago

I believe that there have been major changes in the site from when this code was written. May have to re write the code according to the new website to extract the episode URLs.

krewsayder commented 5 years ago

I have it mostly working using selenium. I can share with you if you'd like.

Essentially they implemented Java Script rendering and a anti bot wait timer.

Selenium will render the JS and I added a loop to look for the required file extensions in the fetched url. If they're not there it waits and refreshes the page using selenium.