diff options
Diffstat (limited to 'plugins/mpd_client.py')
-rw-r--r-- | plugins/mpd_client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py index c5cd88b8..a8893999 100644 --- a/plugins/mpd_client.py +++ b/plugins/mpd_client.py @@ -76,8 +76,8 @@ class Plugin(BasePlugin): port=self.config.get('port', '6600')) password = self.config.get('password', '') if password: - c.password(password) - current = c.currentsong() + c.password(password) #pylint: disable=no-member + current = c.currentsong() #pylint: disable=no-member artist = current.get('artist', 'Unknown artist') album = current.get('album', 'Unknown album') title = current.get('title', base( @@ -86,7 +86,7 @@ class Plugin(BasePlugin): s = '%s - %s (%s)' % (artist, title, album) if 'full' in args: if 'elapsed' in current and 'time' in current: - current_time = float(c.status()['elapsed']) + current_time = float(c.status()['elapsed']) #pylint: disable=no-member percents = int(current_time / float(current['time']) * 10) s += ' \x192}[\x191}' + '-' * ( percents - 1) + '\x193}+' + '\x191}' + '-' * ( |