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

Index error - URL Parse ? #112

Open
RupertB-ES opened this issue Mar 2, 2024 · 3 comments
Open

Index error - URL Parse ? #112

RupertB-ES opened this issue Mar 2, 2024 · 3 comments

Comments

@RupertB-ES
Copy link

Current book: https://archive.org/details/marquis-no.-7-1996-fetish-d.-d.-teoli-jr.-a.-c.-52
This book doesn't need to be borrowed
Traceback (most recent call last):
File "C:\archive.org\archive-org-downloader.py", line 215, in
title, links, metadata = get_book_infos(session, url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\archive.org\archive-org-downloader.py", line 21, in get_book_infos
infos_url = "https:" + r.split('"url":"')[1].split('"')[0].replace("\u0026", "&")
~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

@darnn
Copy link

darnn commented Mar 4, 2024

Don't take this as definitive, but I suspect the issue is that this hasn't been uploaded as a "book", but rather as an "image", as you can see here in media type:
https://archive.org/search?query=+Marquis+No.7+1996+Fetish+Rubberist+Magazine+D.+D.+Teoli+Jr.+A.+C.+

@RupertB-ES
Copy link
Author

There is a similar one that is a PDF but this one is just a set of JPEGs it would be nice if that could be noticed and then download them and reassemble instead

@ali7mrd
Copy link

ali7mrd commented Mar 16, 2024

I was having the same problem. Deleting the archive-org-downloader.py file from the directory that it was saved in (for me it was saved in C:\Users\Ali), replacing it with the same file downloaded from the repository, and then running the "pip install -r requirements.txt" command again solved the issue.

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

3 participants