From a70f8bb91f3fc5489513bd06f325686f6a5d9b12 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 20 Mar 2015 19:52:36 -0400 Subject: [PATCH] Fix #1365: lastimport config --- beetsplug/lastimport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index 66da6880d..0303db219 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -51,8 +51,8 @@ class LastImportPlugin(plugins.BeetsPlugin): def import_lastfm(lib, log): - user = config['lastfm']['user'] - per_page = config['lastimport']['per_page'] + user = config['lastfm']['user'].get(unicode) + per_page = config['lastimport']['per_page'].get(int) if not user: raise ui.UserError('You must specify a user name for lastimport')