mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-28 10:33:59 +00:00
Set default weights to 50 ...
... so we can have plugins with lower than default priority.
This commit is contained in:
@@ -445,12 +445,12 @@ _album_metadata_processors = defaultdict(ExtensionPoint)
|
||||
_track_metadata_processors = defaultdict(ExtensionPoint)
|
||||
|
||||
|
||||
def register_album_metadata_processor(function, weight=0):
|
||||
def register_album_metadata_processor(function, weight=50):
|
||||
"""Registers new album-level metadata processor."""
|
||||
_album_metadata_processors[weight].register(function.__module__, function)
|
||||
|
||||
|
||||
def register_track_metadata_processor(function, weight=0):
|
||||
def register_track_metadata_processor(function, weight=50):
|
||||
"""Registers new track-level metadata processor."""
|
||||
_track_metadata_processors[weight].register(function.__module__, function)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user