From 35b6602795c7fdd71dec09f311a8a6b8a6576414 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 26 Apr 2014 21:00:59 -0700 Subject: [PATCH] Use self.config instead of global config --- beetsplug/lastgenre/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 44ddd78ff..dcf5b2fe2 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -179,7 +179,7 @@ class LastGenrePlugin(plugins.BeetsPlugin): if not tags: return None - count = config['lastgenre']['count'].get(int) + count = self.config['count'].get(int) if self.c14n_branches: # Extend the list to consider tags parents in the c14n tree tags_all = [] @@ -195,8 +195,8 @@ class LastGenrePlugin(plugins.BeetsPlugin): # the original tags list tags = [x.title() for x in tags if self._is_allowed(x)] - return config['lastgenre']['separator'].get(unicode).join( - tags[:config['lastgenre']['count'].get(int)] + return self.config['separator'].get(unicode).join( + tags[:self.config['count'].get(int)] ) def fetch_genre(self, lastfm_obj):