Oshan96 / monkey-dl

Bulk download your favourite anime episodes from your favourite anime websites
MIT License
814 stars 70 forks source link

fix: AnimePahe: 'list' object has no attr. 'keys' #57

Closed justfoolingaround closed 3 years ago

justfoolingaround commented 3 years ago

This PR would fix the issue of downloading from AnimePahe as it modifies the code such that, it now adapts to the new data structure provided by AnimePahe's APIs.

I can't really guarantee that the "full" process of extracting URLs would work as the kwik extractor, or the kwik token extractor, to be precise, seems to be broken. However, the pre-download error regarding API's data structure is fixed.

In the process, I've modified the __set_kwik_links (it is now significantly more error-free and cleaner and the "error logs" are much more elaborative).

Oshan96 commented 3 years ago

@justfoolingaround thank you for the PR! But the current development goes on dev branch so would you mind opening the PR for dev branch instead of master?

justfoolingaround commented 3 years ago

Ah, sure and since I've kinda looked through a lot of the code itself and seen multiple bugs and changes in sites that have caused lack of support of sites, I'd kinda want to fix majority of them on the PR on the dev branch.

P.S: I just saw this reply today, I'm sorry for replying late.