xuzhengyi1995 / Renta_Downloader

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

ValueError: invalid literal for int() #21

Open just-smol opened 1 week ago

just-smol commented 1 week ago

I am having issues since english renta switched from url "us-dre3" to "en-dre-viewer". Example url https://en-dre-viewer.ebookrenta.com/

I'm not familiar enough with python to know if that's actually the cause, but noted the url was different when trying. Here is picture of the error message. image

just-smol commented 1 week ago

After poking and some googling of python syntax and playing around I successfully fixed this error in my own files by changing line 104 to is_us = True if url.find('us-dre') != -1 or url.find('en-dre') != -1 else False

I was able to fetch my images after that.