Skip to content
Discussion options

You must be logged in to vote

This should be possible using the inline plugin, something like this:

album_fields:
  completeness: |
    track_count = len(items)
    total_track_count = 0
    for item in items:
      # calculate total track count using item.disc and item.tracktotal fields

    ratio = track_count / total_track_count 
    return f"{100 * ratio}%"

Replies: 1 comment 1 reply

Comment options

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

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