summaryrefslogtreecommitdiff
path: root/clMonty.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2008-12-27 09:21:39 +0100
committerAnton Khirnov <wyskas@gmail.com>2008-12-27 09:21:39 +0100
commit15d1d996f1a8539fb0dec11465a336bd5f396d20 (patch)
treefc9c1d04f15fd3e219bf421722341f762cbac013 /clMonty.py
parent383a6cdd901841fe59d06707ba692e068ee151e9 (diff)
Use addid command instead of add for adding songs to playlist.
Diffstat (limited to 'clMonty.py')
-rw-r--r--clMonty.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/clMonty.py b/clMonty.py
index 3144035..e173b07 100644
--- a/clMonty.py
+++ b/clMonty.py
@@ -197,9 +197,10 @@ class Monty(QtCore.QObject):
"""Add all files in $paths to the current playlist."""
self._client.command_list_ok_begin()
for path in paths:
- self._client.add(path)
- self._client.command_list_end()
+ self._client.addid(path)
+ ret = self._client.command_list_end()
self._updatePlaylist()
+ return ret
def setVolume(self, volume):
"""Set volumne to $volume."""