available covers not being retrieved from OpenLibrary for some titles
Bug #1306823 reported by
Galen Charlton
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
In (some?) cases where there are more than one work record for a given ISBN in the Open Library's database, using the OL Read API to request links to covers can fail to bring up an edition that has a cover.
A good example of this is ISBN 9264023607.
https:/
http://
BUT
http://
Evergreen master
tags: | added: addedcontent |
To post a comment you must log in.
An experimental patch is available at the tip of the user/gmcharlt/ lp1306823_ fetch_more_ covers_ from_ol branch in the working/Evergreen repository:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp1306823_ fetch_more_ covers_ from_ol
A few notes about this:
- It's entirely possible that this works only by accident /covers. openlibrary. org/b/id/ 3343096- L.jpg. This may be a problem: these are Covers API URLs, and the OL documentation says that they are rate-limited to a maximum of 100 requests every five minutes. This suggests that the Read API may not be suitable as a way of getting past that limit for cover images.
- A better approach may be using the Read API's multiple option and scanning through the results to find the first edition that has a cover link
- The cover image URLs returned by the Read API look like this - https:/