Changed my code to
initial: |
import beets.plugins
the_func = beets.plugins.template_funcs()['the']
the_artist = the_func(albumartist_sort or artist_sort or albumartist or artist or '_')
return the_artist[0].upper()
And this works like a charm. Thanks!