Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() #21

Open
just-smol opened this issue Nov 11, 2024 · 1 comment
Open

ValueError: invalid literal for int() #21

just-smol opened this issue Nov 11, 2024 · 1 comment

Comments

@just-smol
Copy link

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
Copy link
Author

just-smol commented Nov 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant