Repository navigation
Conversation
- MBModel.model_post_init logs unmapped fields at DEBUG level - Set MUSICBRAINZPY_DEBUG=1 to enable debug logging on import - Useful for discovering new API fields before they get typed attributes - Document MUSICBRAINZPY_DEBUG in README and api-reference env vars tables
Add fields returned by lookups (with inc=), searches, and browses that were not yet mapped in the Pydantic models: - AreaStub: type, type-id, life-span, iso-3166-2-codes - ArtistStub: country, aliases, tags, genres - Alias: begin-date, end-date - Artist: score, releases, release-groups, recordings, works - Recording: aliases, releases, score, video optional, artist-credit-id - Release: aliases, score, track-count, count, artist-credit-id, Disc model - ReleaseGroup: aliases, score, count, artist-credit-id, type-id - Label: score, releases - LabelStub: type, type-id, sort-name, label-code, aliases, tags, genres - ReleaseGroupStub: type-id, first-release-date, artist-credit, aliases, tags, genres - Medium: id, discs - Work: score, relations - Event: score, relations - Place: score - Series: score artist-credit-id is a UUID string, not int. Recording.releases, Label.releases, Work.relations, Event.relations use list[MBModel] to avoid circular imports. Include missing_fields_checker.py example script that queries all entity types against the live API and reports unmapped fields.
Replicates all information shown on a MusicBrainz recording page: recording info, ISRCs, rating, genres/tags, artist relationships (performers, engineers, producers), studio locations, external links, related work (composer/lyricist, publishers), and all releases the recording appears on. Default MBID: Pink Floyd - The Post War Dream (original studio mix) Accepts any recording MBID as CLI argument.
Every request through _raise_for_status now logs a one-liner: musicbrainzpy GET /ws/2/artist/... 200 0.169s Also fix MUSICBRAINZPY_DEBUG to attach a StreamHandler when no handlers exist, so debug messages actually appear on stderr.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.