Skip to content

Commit

Permalink
Use PluginPriority.HIGH and rename weight to priority
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Apr 24, 2014
1 parent b7468b8 commit 8deddf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/plugins/standardise_performers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import re
from picard import log
from picard.metadata import register_track_metadata_processor
from picard.plugin import PluginPriority

standardise_performers_split = re.compile(r", | and ").split

Expand All @@ -52,4 +53,5 @@ def standardise_performers(album, metadata, *args):
metadata.add_unique(newkey, value)
del metadata[key]

register_track_metadata_processor(standardise_performers, weight=200)
register_track_metadata_processor(standardise_performers,
priority=PluginPriority.HIGH)

0 comments on commit 8deddf7

Please sign in to comment.