Replies: 4 comments 25 replies
-
I'd be open to any and all opinions on this general direction, but here are two gut reactions:
|
Beta Was this translation helpful? Give feedback.
-
There is an extra question about credentials (password or oauth). The former library used to store the login/password. In my opinion, the library should not do that and the credentials should only be managed by the caller. What is your opinion ? |
Beta Was this translation helpful? Give feedback.
-
Hello, here is a suggestion https://gitlab.com/Louson/python-musicbrainzez/-/merge_requests/1 It looks huge but most of it is duplicating xml tests in json. Can you have a look ? I kept the parsing in a dedicated subfolder, but it is not hold by default. |
Beta Was this translation helpful? Give feedback.
-
Hello, I might have some time for this. Do you have any idea how to go further ? |
Beta Was this translation helpful? Give feedback.
-
As explained in #4651 , the musicbrainz python library python-musicbrainzngs receives no update.
It is used in beets auto-tagging and in several plugins.
As @sampsyo truly says, it was created when the only output format was xml and has a lot of parsing code that can be deleted. Also, after digging in it, it reveals some lack of conception, using sometimes oriented object programming and sometimes global variables.
It can indeed be replaced by a much simpler library. Of course, this implies to find who and when. But first, two question have to be answered:
Q1. Implement the library inside this project or as an independent project
Both have some pros and cons.
The cons about implementing it inside beets is that it will add some maintainance work to the beets developpers.
The cons about an independant project is that it requires at least one developer who actively maintains it, with the risk for it to be abandoned again.
I think at this stage it is better to implement into beets project unless we know some others projects that use this and who will appreciate to share the effort.
Q2. JSON abstraction or simple pass-through
We have two options:
Beta Was this translation helpful? Give feedback.
All reactions