# Playback Option Commands
"consume": self._fetch_nothing,
"crossfade": self._fetch_nothing,
# Playback Option Commands
"consume": self._fetch_nothing,
"crossfade": self._fetch_nothing,
"random": self._fetch_nothing,
"repeat": self._fetch_nothing,
"setvol": self._fetch_nothing,
"random": self._fetch_nothing,
"repeat": self._fetch_nothing,
"setvol": self._fetch_nothing,
# Database Commands
"count": self._fetch_object,
"find": self._fetch_songs,
# Database Commands
"count": self._fetch_object,
"find": self._fetch_songs,
"list": self._fetch_list,
"listall": self._fetch_database,
"listallinfo": self._fetch_database,
"lsinfo": self._fetch_database,
"search": self._fetch_songs,
"update": self._fetch_item,
"list": self._fetch_list,
"listall": self._fetch_database,
"listallinfo": self._fetch_database,
"lsinfo": self._fetch_database,
"search": self._fetch_songs,
"update": self._fetch_item,
# Sticker Commands
"sticker get": self._fetch_item,
"sticker set": self._fetch_nothing,
# Sticker Commands
"sticker get": self._fetch_item,
"sticker set": self._fetch_nothing,
- raise AttributeError("'%s' object has no attribute '%s'" %
- (self.__class__.__name__, attr))
+ command = command.replace("_", " ")
+ if command not in self._commands:
+ raise AttributeError("'%s' object has no attribute '%s'" %
+ (self.__class__.__name__, attr))
return lambda *args: wrapper(command, args)
def _send(self, command, args):
return lambda *args: wrapper(command, args)
def _send(self, command, args):