Set default weights to 50 ...

... so we can have plugins with lower than default priority.
This commit is contained in:
Sophist
2014-04-21 17:20:57 +01:00
parent 60fc6e4499
commit 1a4d2b5ce7

View File

@@ -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)