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
Event art archive support #39
Conversation
mwiencek
commented
Dec 14, 2020
•
edited
edited
- Add API support for events, and for fetching an eventartarchive.org index page
- Upgrade Python to 3.11
- Upgrade SQLAlchemy to v2
- Remove Bootstrap
This project will also serve event art in the future.
Fixes line wrapping and some grammar.
that this was missing from the h1 on the homepage disturbs me greatly
This seems to be required by the new musicbrainz-test-database images I switched over to in 8eb69cd.
I don't see any good reason to use Bootstrap (pulling in hundreds of kilobytes of JS/CSS) just to display a single static page that links to documentation. I've kept the display of the page nearly identical. The only real feature of BS we used was the navbar collapse. It no longer collapses (and doesn't need to, as there are only three items), but does re-orient itself below the main logo. This reduces the project complexity significantly (dropping dependencies on Bootstrap and less, both of which were severly out of date, plus node and npm), and reduces the unminified page size from ~243 KB to ~71 KB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems generally fine AFAICT.
def resolve_event_art(self, mbid, type, thumbnail): | ||
"""Get the frontiest artwork image.""" | ||
|
||
if type == "Front": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, so events have a "front"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's just the "most representative" image for the event, but the terminology was kept the same for simplicity (I think the IA had asked about it, since they use the "front" flag to determine what image to show on their details page).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok :)
Right now it's shamelessly copied from the Cover Art Archive, minus the logos which don't exist yet.