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

Detect Cover Art Types #29

Open
2 of 5 tasks
kellnerd opened this issue Aug 1, 2022 · 2 comments
Open
2 of 5 tasks

Detect Cover Art Types #29

kellnerd opened this issue Aug 1, 2022 · 2 comments
Assignees
Labels
idea Ideas for new scripts and features

Comments

@kellnerd
Copy link
Owner

kellnerd commented Aug 1, 2022

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

  • Detect all possible cover art types which are contained in the filename /\b(front|booklet|etc)\b/gi
  • 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 kellnerd added the idea Ideas for new scripts and features label Aug 1, 2022
@kellnerd
Copy link
Owner Author

kellnerd commented Aug 1, 2022

While this idea has been buried in my personal notes, other users had similar ideas: ROpdebee/mb-userscripts#487

@kellnerd kellnerd self-assigned this Nov 11, 2022
@kellnerd
Copy link
Owner Author

kellnerd commented Nov 11, 2022

A first draft of this idea has been implemented as a bookmarklet in 5691d38 (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Ideas for new scripts and features
Projects
None yet
Development

No branches or pull requests

1 participant