diff options
-rw-r--r-- | nephilim/mpclient.py | 2 | ||||
-rw-r--r-- | nephilim/song.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index 7c1afcf..c058ecc 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -310,7 +310,7 @@ class MPClient(QtCore.QObject): self._client.command_list_ok_begin() try: for id in list: - self.logger.info('Deleting id %d from playlist.'%id) + self.logger.info('Deleting id %s from playlist.'%id) self._client.deleteid(id) self._client.command_list_end() except mpd.CommandError, e: diff --git a/nephilim/song.py b/nephilim/song.py index 008312a..0f1a627 100644 --- a/nephilim/song.py +++ b/nephilim/song.py @@ -27,8 +27,6 @@ class Song: def __init__(self, data): self._data = data - if 'id' in self._data: - self._data['id'] = int(self._data['id']) if 'track' in self._data: try: self._data['track'] = int(self._data['track']) @@ -60,7 +58,7 @@ class Song: def id(self): """Get the song's playlist ID. (-1 if not in playlist).""" - return self.tag('id', -1) + return self.tag('id', '-1') def title(self): """Get the song's title (or filename if it has no title).""" |