How to see "completeness" of an album? #6578
-
|
Is it possible (maybe with I've tried writing my own inline block but I always end up getting an error saying certain fields aren't available... |
Beta Was this translation helpful? Give feedback.
Answered by
snejus
Apr 23, 2026
Replies: 1 comment 1 reply
-
|
This should be possible using the 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}%" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NicolasPL64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be possible using the
inlineplugin, something like this: