From: J. Alexander Treuman Date: Mon, 13 Dec 2010 22:50:29 +0000 (-0500) Subject: adding findadd and rescan commands X-Git-Tag: v0.3.0~8 X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=commitdiff_plain;h=df0be04d1d7299652a44ad53fc44e797f41de362 adding findadd and rescan commands --- diff --git a/doc/commands.txt b/doc/commands.txt index 8fb069d..278f859 100644 --- a/doc/commands.txt +++ b/doc/commands.txt @@ -60,12 +60,14 @@ save -> fetch_nothing == Database Commands count -> fetch_object find -> fetch_songs +findadd -> fetch_nothing list [] -> fetch_list listall [] -> fetch_database listallinfo [] -> fetch_database lsinfo [] -> fetch_database search -> fetch_songs update [] -> fetch_item +rescan [] -> fetch_item == Sticker Commands sticker get -> fetch_item diff --git a/mpd.py b/mpd.py index f18356b..9494b0e 100644 --- a/mpd.py +++ b/mpd.py @@ -114,12 +114,14 @@ class MPDClient(object): # Database Commands "count": self._fetch_object, "find": self._fetch_songs, + "findadd": self._fetch_nothing, "list": self._fetch_list, "listall": self._fetch_database, "listallinfo": self._fetch_database, "lsinfo": self._fetch_database, "search": self._fetch_songs, "update": self._fetch_item, + "rescan": self._fetch_item, # Sticker Commands "sticker get": self._fetch_item, "sticker set": self._fetch_nothing,