lastimport: Declare play_count type

Now you can get the fanciness of the numeric field without configuring the
`types` plugin.
This commit is contained in:
Adrian Sampson 2014-10-26 15:06:48 -07:00
parent 38c31a47c1
commit 665b4ac50a

View file

@ -18,6 +18,7 @@ from beets import ui
from beets import dbcore
from beets import config
from beets import plugins
from beets.dbcore import types
log = logging.getLogger('beets')
API_URL = 'http://ws.audioscrobbler.com/2.0/'
@ -34,6 +35,9 @@ class LastImportPlugin(plugins.BeetsPlugin):
'per_page': 500,
'retry_limit': 3,
})
self.item_types = {
'play_count': types.INTEGER,
}
def commands(self):
cmd = ui.Subcommand('lastimport', help='import last.fm play-count')