diff --git a/modules/source_plugin_mpd.py b/modules/source_plugin_mpd.py index 6e36bc88..796cff04 100644 --- a/modules/source_plugin_mpd.py +++ b/modules/source_plugin_mpd.py @@ -290,16 +290,16 @@ def random( self, mode, **kwargs ): else: return False - self.printer('Random. Mode: {0}'.format(self.random_modes.active)) - if 'off' in self.random_modes.active: + self.printer('Random. Mode: {0}'.format(self.random_modes.active())) + if 'off' in self.random_modes.active(): self.mpdc.random('off') - elif 'playlist' in self.random_modes.active: + elif 'playlist' in self.random_modes.active(): self.mpdc.random('on') - elif 'folder' in self.random_modes.active: + elif 'folder' in self.random_modes.active(): pass - elif 'artist' in self.random_modes.active: + elif 'artist' in self.random_modes.active(): pass - elif 'genre' in self.random_modes.active: + elif 'genre' in self.random_modes.active(): pass else: return False