Skip to content
Discussion options

You must be logged in to vote

For tags you've already added to the files, inline can read them with Mutagen, which beets already depends on. Inline's normal variables come from the beets item, so an arbitrary file tag such as PERFORMER won't automatically appear there.

Add inline to your existing plugins list, then add this top-level config block:

item_fields:
  performers: |
    import mutagen
    from beets.util import syspath
    audio = mutagen.File(syspath(path), easy=True)
    if audio is None or audio.tags is None:
        return ""
    values = list(audio.get("performer", []))
    for key in sorted(audio.keys()):
        if key.startswith("performer:"):
            role = key.split(":", 1)[1]
            value…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@CrimzonCoder
Comment options

Answer selected by CrimzonCoder
Comment options

You must be logged in to vote
1 reply
@CrimzonCoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants