mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-30 13:19:26 +00:00
13 lines
380 B
Python
13 lines
380 B
Python
PLUGIN_NAME = 'Initials'
|
|
PLUGIN_AUTHOR = 'Lukas Lalinsky'
|
|
PLUGIN_DESCRIPTION = 'Provides tagger script function $initials(text).'
|
|
PLUGIN_VERSION = "0.1"
|
|
PLUGIN_API_VERSIONS = ["0.9.0", "0.10"]
|
|
|
|
from picard.script import register_script_function
|
|
|
|
def initials(parser, text):
|
|
return "".join(a[:1] for a in text.split(" ") if a[:1].isalpha())
|
|
|
|
register_script_function(initials)
|