bddf06
PLUGIN_NAME = 'Feat. Artists'
bddf06
PLUGIN_AUTHOR = 'Lukas Lalinsky'
bddf06
PLUGIN_DESCRIPTION = 'Removes feat. artists from track titles.'
bddf06
PLUGIN_VERSION = "0.1"
bddf06
PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"]
bddf06
bddf06
from picard.metadata import register_track_metadata_processor
bddf06
import re
bddf06
bddf06
def remove_featartists(tagger, metadata, release, track):
bddf06
    metadata["title"] = re.sub(r"\s+\(feat. [^)]*\)", "", metadata["title"])
bddf06
bddf06
register_track_metadata_processor(remove_featartists)