musicbrainz-scripts icon indicating copy to clipboard operation
musicbrainz-scripts copied to clipboard

Detect Cover Art Types

Open kellnerd opened this issue 3 years ago • 2 comments
trafficstars

Extract cover art types and comments from filenames during upload to the CAA.

  • [x] Detect all possible cover art types which are contained in the filename /\b(front|booklet|etc)\b/gi
  • [x] Use text in rounded brackets as image comment
  • [ ] Make image comment extraction customizable
  • [ ] Allow the user to specify additional types which should be selected for all uploads (e.g. Raw or Booklet)
  • [ ] Suggest to fill image comment with "page x" if there are multiple images of type booklet
    • Allow adaption of the numbering pattern with prefix (e.g. "page "), first page number (e.g. 2), step (e.g. 2) and joinphrase (e.g. " & "), which results in "page 2 & 3", "page 4 & 5" etc.
    • Skip this step if the commments are already filled (or append/prefix?)

kellnerd avatar Aug 01 '22 11:08 kellnerd

While this idea has been buried in my personal notes, other users had similar ideas: https://github.com/ROpdebee/mb-userscripts/issues/487

kellnerd avatar Aug 01 '22 11:08 kellnerd

A first draft of this idea has been implemented as a bookmarklet in https://github.com/kellnerd/musicbrainz-scripts/commit/5691d38f01f7cbe3b3d02efbe1035b367692b37a (~currently only available on the beta branch~). It recognizes one or multiple image types if their names are included anywhere in the filename (as separate words) and it also interprets filename parts in parentheses as image comments.

While the bookmarklet is already kind of customizable by hardcoding parameter values (even in its minified form), it would be nice to have a userscript version with a proper UI in the future.

kellnerd avatar Nov 11 '22 16:11 kellnerd