diff options
Diffstat (limited to 'nephilim')
-rw-r--r-- | nephilim/mpclient.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index fd3524a..e26f3a3 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -235,6 +235,16 @@ class MPClient(QtCore.QObject): iterator over all Songs in the database as the argument. """ self._command('listallinfo', callback = lambda data: callback(self._parse_songs(data))) + def update_database(self): + """ + Initiates a database update. + """ + self._command('update') + def rescan_database(self): + """ + Initiase a rebuild of database from scratch. + """ + self._command('rescan') ## searching ## def find(self, callback, *args): |