Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-12446

API to programmatically enqueue new cover art on add-cover-art pages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Cover art
    • None

      Some background: I made the Enhanced Cover Art Edits (ECAU) userscript, which among others, enables adding new cover art via URLs. It's pretty popular. It uses a huge and ugly, but vital workaround to add these images, and for that it needs to access MBS' jQuery.

      Unfortunately, it appears that certain userscript add-ons (most notably recent beta versions of Violentmonkey) allow userscripts to overwrite window.$ resulting in ECAU not being able to access MBS' own jQuery, the workaround failing, and the whole userscript being unable to achieve its core functionality.

      There's no guaranteed fix on my side, because any other userscript can cause this. So it'd be great if there was some first-party support to programmatically enqueue new cover art uploads on the add-cover-art pages. Most of it is already accessible from window.MB.CoverArt, but to the best of my knowledge, it cannot be used to enqueue new images. Vitally, the object which controls the queue is a local variable. If that object's addFile method could be exported on window.MB.CoverArt, it'd allow me to have the userscript queue the images programmatically instead of simulating user interaction events.

            Unassigned Unassigned
            ROpdebee ROpdebee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Version Package