mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 09:54:31 +01:00
Fix #1365: lastimport config
This commit is contained in:
parent
d09c8c66b3
commit
a70f8bb91f
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue