Skip to content

Commit

Permalink
make convert plugin run first
Browse files Browse the repository at this point in the history
  • Loading branch information
autrimpo committed Feb 18, 2018
1 parent bfeb678 commit 257a557
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beets/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from beets import logging
from beets import mediafile
import six
import beetsplug

PLUGIN_NAMESPACE = 'beetsplug'

Expand Down Expand Up @@ -397,7 +398,10 @@ def import_stages():
"""Get a list of import stage functions defined by plugins."""
stages = []
for plugin in find_plugins():
stages += plugin.get_import_stages()
if isinstance(plugin, beetsplug.convert.ConvertPlugin):
stages = plugin.get_import_stages() + stages
else:
stages += plugin.get_import_stages()
return stages


Expand Down

0 comments on commit 257a557

Please sign in to comment.