Skip to content

Support covers in .zip in l_covers_0008 #9706

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

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Aug 7, 2024

Part of #7478 . We redirected all large covers in this range to their medium counterparts because taking them out of the tars was very slow. Hank converted the tars to zips, so now we can serve them large again!

Technical

Testing

On prod, covers work! And covers like http://covers.openlibrary.org/b/id/8000001.jpg are large.

Screenshot

Stakeholders

@cdrini cdrini added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Aug 7, 2024
@cdrini cdrini marked this pull request as ready for review August 7, 2024 18:56
Copy link
Collaborator

@scottbarnes scottbarnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor feedback that may or may not matter.

# - the naming scheme is the older scheme used by .tar files
# (eg item `l_covers_0008` instead of `olcovers9`
# - the db is not yet updated with their correct URLs
if size == "L" and 8_820_000 > value >= 8_000_000:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if size == "L" and 8_820_000 > value >= 8_000_000:
if size in ("L", "") and 8_820_000 > value >= 8_000_000:

I am a bit unsure of this feedback as I confess I'm not entirely sure of the desired behavior. Should the zip be used for http://covers.openlibrary.org/b/id/8000001.jpg? If so, a change similar to this may be necessary, though I may simply be misunderstanding the flow and the desired goal.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Q! Only the L covers have had their tars converted to zips right now; this will expand to all sizes as more of the items are fixed up!

@cdrini cdrini merged commit c8d3720 into internetarchive:master Aug 8, 2024
4 checks passed
@cdrini cdrini mentioned this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants