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

mbxml.py missing some attributes for some elements. #276

Open
tombay opened this issue Jan 13, 2022 · 2 comments · May be fixed by #282 or #281
Open

mbxml.py missing some attributes for some elements. #276

tombay opened this issue Jan 13, 2022 · 2 comments · May be fixed by #282 or #281

Comments

@tombay
Copy link

tombay commented Jan 13, 2022

I have just started using the python program whipper ( cone from morituri) .
I have noticed that some of the element and attribute list in mbxml.py are missing fields returned from a musicbrainsquery. This is seen by log.info reports of "uncaught attribute". I update mbxml.py to address these issues. I have also included a "diff" text showing the differences. I also noticed that there are log.info reports of "uncaught" (without the attribute). This happens where "reparsing" attribute-lists. (see the comment in parse_relation method ->
# We parse attribute-list again to get attributes that have both
# text and attribute values
These log messages occur because the reparsing is reporting errors for elements that have already been handled by the first pass through the relation entry. I think these are benign messages so I added a boolean logit to the end of parse_elements (default True) to log uncaught entries.
The "xml" file from url https://musicbrainz.org/ws/2/release/9b71c862-0737-47af-ac4a-4c61183c9588?inc=artists+artist-credits+recordings+discids+labels+recording-level-rels+work-rels+release-groups+work-level-rels+artist-rels demonstrates the issues.
I have attached mbxml.orig.py.txt mbxml.new.py.txt, mbxml.diff.txt and fv.xml.txt
fv.xml.txt
mbxml.diff.txt
mbxml.new.py.txt
mbxml.orig.py.txt

I have not done a pull (Just did a git clone) but can If you wish. I imagine that with these little issues nobody has worried %-)
Cheers
Tom

@alastair alastair linked a pull request Jan 16, 2022 that will close this issue
@alastair alastair linked a pull request Jan 16, 2022 that will close this issue
@alastair
Copy link
Owner

Thanks for the report! I've fixed these in #282 and #281

@alastair alastair linked a pull request Jan 16, 2022 that will close this issue
@tombay
Copy link
Author

tombay commented Jan 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants