musicbrainz-scripts
musicbrainz-scripts copied to clipboard
Credit parser and importer
Collection of ideas to combine features of the Voice Actor Credits and Parse Copyright Notice userscripts and enhance it to be a general purpose credit parser and importer.
Unstructured notes
- [ ] Parse release level credits from a textarea input
- [ ] Use OCR (maybe tesseract.js) for (booklet) images from the CAA or an URL to fill the textarea
- [ ] Use role descriptions to guess relationship types
- [ ] Customizable line parser presets (e.g.
%role%: %artist% [(%date%)], square brackets to mark optional parts) - [x] Create a custom entity name to MBID mapping for each user (names are usually unambiguous then) and cache it
- [x] CTRL click to circumvent mapping cache
- [x] SHIFT click to force artist instead of label search (copyrights)
- [ ] Import credits from Discogs and other sources
- [x] Import voice actor credits from Discogs
- [x] Cache Discogs to MB entity mappings
- [x] Suggest to link new matches (seed Discogs link for MB artist edit page) to improve mappings
- [ ] Map Discogs roles to MB relationship types and attributes
- Let the user select the correct type for unknown roles, cache it and suggest to share the new mapping data on GH?
- [x] Place UI before release relationships, checkbox to auto-focus (no unnecessary scrolling)
- [ ] Checkbox "Auto-parse (on paste)"
- [ ] Checkbox "Track level credits" to (un)select all recordings and works
- [ ] Checkbox "Add release relationships" (if appropriate) in order to be able to add only track level rels
- [ ] Checkbox "Use credited names"?
- [ ] Clean up pasted credit lines before adding them to the edit note (trim, replace tabs by dashes or similar)
Hello, in regards to "Map Discogs roles to MB relationship types and attributes" I made an incomplete (and probably erroneous) mapping myself when trying to adapt your voice actor script to do exactly what you're planning here. Hope it helps in some way, I'd love for the idea to see fruition.
https://gist.github.com/metaisfacil/6ffa5a83b32ce573d26b92cefcd641d6
That's great, thank you for sharing your mapping! Did your adapted script work as expected?
I don't think it requires too much work to cleanly integrate this mapping into (a "clone" of) my voice actor script, but so far I've hesitated to implement this feature. It would require a lot of testing and I would want to ensure that it's as stable and complete as possible before releasing it. Unfortunately my spare time is quite limited in 2023, so I haven't continued working on this ticket...
Only partially, I gave up at fixing relationship attributes lol (which is why my map is lackluster in that regard - I didn't get that far). The map seemed to be fine on the test cases I tried, but there may be a few that aren't the best choice with regards to MusicBrainz style.
EDIT: Also for the record, I give anyone full permission to use the map to any extent and in any capacity, attribution not necessary.