xuzhengyi1995 / Renta_Downloader

Download manga you rent from http://renta.papy.co.jp/
50 stars 16 forks source link

Script no longer works because Renta has changed its reader #15

Closed nutritionalyeest closed 4 months ago

nutritionalyeest commented 6 months ago

Hi @xuzhengyi1995! It seems like Renta has recently changed how its manga reader looks/behaves, so Renta_Downloader script no longer functions. The specific error I get when running the script: Exception: Can not find sum_page on the page

I was able to create a workaround by setting sum_page by hand.

I use this script a lot, and I really appreciate it you making it available. :-)

vsatyamesc commented 6 months ago

The only problem here is that the Script can no longer calculate the total number of pages. What you can try doing rn is go to line 160 change the code

#sum_page = int(re_max_page.findall(data)[0])
sum_page = <Total number of pages of the manga>
vsatyamesc commented 6 months ago

else, at line 105, replace line re_max_page = re.compile(r'var max_page = parseInt("(\d+)")') made a pull request

vsatyamesc commented 6 months ago

this can be closed now. Issue merged.