]> kaliko git repositories - python-musicpd.git/commitdiff
adding findadd and rescan commands
authorJ. Alexander Treuman <jat@spatialrift.net>
Mon, 13 Dec 2010 22:50:29 +0000 (17:50 -0500)
committerJ. Alexander Treuman <jat@spatialrift.net>
Mon, 13 Dec 2010 22:50:29 +0000 (17:50 -0500)
doc/commands.txt
mpd.py

index 8fb069d9af432d1826e352b857c2cf1ebf682648..278f859fdecf24fc59e277e033c6b4d91f626440 100644 (file)
@@ -60,12 +60,14 @@ save             <str>                   -> fetch_nothing
 == Database Commands
 count            <locate>                -> fetch_object
 find             <locate>                -> fetch_songs
+findadd          <locate>                -> fetch_nothing
 list             <str> [<locate>]        -> fetch_list
 listall          [<str>]                 -> fetch_database
 listallinfo      [<str>]                 -> fetch_database
 lsinfo           [<str>]                 -> fetch_database
 search           <locate>                -> fetch_songs
 update           [<str>]                 -> fetch_item
+rescan           [<str>]                 -> fetch_item
 
 == Sticker Commands
 sticker get      <str> <str> <str>       -> fetch_item
diff --git a/mpd.py b/mpd.py
index f18356bc8934c4f491467e1bfaec5271aaf905c0..9494b0e41d2fe1eea5e25f3e3c2037f23262200c 100644 (file)
--- 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,