mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 18:13:58 +00:00
Use PluginPriority.HIGH and rename weight to priority
This commit is contained in:
@@ -28,6 +28,7 @@ PLUGIN_API_VERSIONS = ["1.3.0"]
|
||||
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user