diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-08-22 16:32:52 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-08-23 06:43:16 +0200 |
commit | d8453209db0c7f3cee4a9fde3df04d3a64ddec52 (patch) | |
tree | b2535cb41a9f1470ee2945d6ec4e3279a3d5fcf0 | |
parent | ac10c70a883e71b866a3db79b6951dc7614908a8 (diff) |
song: don't convert id to int
it serves no real purpose.
-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).""" |