diff options
author | Anton Khirnov <wyskas@gmail.com> | 2008-12-27 09:21:39 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2008-12-27 09:21:39 +0100 |
commit | 15d1d996f1a8539fb0dec11465a336bd5f396d20 (patch) | |
tree | fc9c1d04f15fd3e219bf421722341f762cbac013 /clMonty.py | |
parent | 383a6cdd901841fe59d06707ba692e068ee151e9 (diff) |
Use addid command instead of add for adding songs to playlist.
Diffstat (limited to 'clMonty.py')
-rw-r--r-- | clMonty.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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.""" |