Oshan96 / monkey-dl

Bulk download your favourite anime episodes from your favourite anime websites
MIT License
816 stars 71 forks source link

Unable to download from Animepahe even with 2captcha #30

Open Mitchy403 opened 4 years ago

Mitchy403 commented 4 years ago

[INFO] : AnimePahe URL detected... [INFO] : Collecting download links... [INFO] : Collecting episodes... [INFO] : Collecting kwik links... [ERROR] : 'list' object has no attribute 'keys' [INFO] : Retrying to collect download links... [INFO] : Collecting episodes... [INFO] : Collecting kwik links... [ERROR] : 'list' object has no attribute 'keys' [ERROR] : Failed to retrieve download links!

Hopefully this is something easy I can fix on my end but I haven't found anything about this

Oshan96 commented 4 years ago

Can I know whether the issue is still there? or if it's one time issue?

If it's still there, I was working on the next release of monkey-dl and will look into this issue as well. I had some other work going on so didn't have enough time to invest on this for sometime now, But I will start working on it again and hopefully release the next version with fixes :)

Mitchy403 commented 4 years ago

Problem seems to be different right now,

We definitely appreciate the time and effort you put into this project

I tried it with a couple of different anime and it says the same thing

Oshan96 commented 4 years ago

Please don't post images with your API keys.

And it seems like I will have to look into this for a fix :) I will start working on it and hopefully will find where the issue is quickly :)

charlesjacob commented 3 years ago

Good day. I'm also having this kind of problem when downloading. Please help, thank you very much.

sdMickey commented 3 years ago

Just had the same issue. Anybody find any solutions?

RatCheese1608 commented 3 years ago

Did you guys changed the variable used in an object and forget to associate it on other uses?

RatCheese1608 commented 3 years ago

In case anyone is still facing this issue:

Go to \monkey-dl\anime_downloader\scrapers\animepahe\animepahe_scraper.py Paste the following code if isinstance(api_data, list) and len(api_data) > 0: api_data = api_data[0] after api_data = self.__get_page_data(temp_url)["data"] inside the function def __set_kwik_links(self)

I think it's pasted at the end of the line/script. This was quoted from my email, I don't know why I can't see it, so I'm posting it here.

image

I have also attempted to add the solution itself, but I can't test it out since I don't have the ability to compile it (I'm pretty much just a pc user who knows coding so he can make his life easier.)

charlesjacob commented 3 years ago

Hello Good day. I just want to ask where I should put the code exactly. I'm sorry I don't really have much idea about coding. And another question, does it automatically apply on the monkey dl exe? If not, how can I execute it? Thank you very much.

On Sun, 30 May 2021 at 11:29, RayCist1608 @.***> wrote:

In case anyone is still facing this issue:

Go to \monkey-dl\anime_downloader\scrapers\animepahe\animepahe_scraper.py Paste the following code if isinstance(api_data, list) and len(api_data)

0: api_data = api_data[0] after api_data = self.__get_page_data(temp_url)["data"] inside the function def __set_kwik_links(self)

I think it's pasted at the end of the line/script. This was quoted from my email, I don't know why I can't see it, so I'm posting it here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Oshan96/monkey-dl/issues/30#issuecomment-850933670, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRJVEVZGI35E5SGJU5VHHTTQGWI3ANCNFSM4OOBDH7A .

RatCheese1608 commented 3 years ago

Hi charlesjacob, It applies to the raw python code in the master release (specifically the monkey-dl / anime_downloader / scrapers / animepahe / animepahe_scraper.py). I've made a commit to the file to add the line but it still needs to be reviewed by an official contributor (I think). The exe is a compiled version of all the scripts, and I don't have a lot of experience in compiling. So even if you did edit the script, saved it, you wouldn't be able to use it since it (probably, I tried just downloading the master release, edit the required script and run it, but couldn't figure out how to start the gui). The master release is also known as the source code and the releases we usually use is a compiled version of those. There's no way to edit the exe itself since the exe is just a compiled binary and has mainly just the set of commands required for the program to work and does not rely on a script.

For other's who are reading this. You can download from the master repo and edit monkey-dl / anime_downloader / scrapers / animepahe / animepahe_scraper.py and build monkey-dl from source. The method is apparently simple, you just have to install a couple of pip packages and make sure they are the same with the version specified in requirements.txt, if you enter a problem, try just installing the latest version. You can then goto monkey-dl / anime_downloader and run anime-dl.py which should start the gui. Make sure to have settings.json setup in the same folder of anime-dl.py Currently even after this fix, it only fixed the part where it says lists don't have a key, which of course they don't, dictionaries do. You should receive an error '720' or even better a working download.

SMILLEE2 commented 3 years ago

Is the problem close to being fixed? And do u maybe have an DC?

I love the application keep up the good work

RatCheese1608 commented 3 years ago

No the issue has not yet been fixed, I tested the "fix" and had a new error and so I can only rely until Oshan96 creates a better solution.