summaryrefslogtreecommitdiff
path: root/nephilim/song.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-22 16:32:52 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-23 06:43:16 +0200
commitd8453209db0c7f3cee4a9fde3df04d3a64ddec52 (patch)
treeb2535cb41a9f1470ee2945d6ec4e3279a3d5fcf0 /nephilim/song.py
parentac10c70a883e71b866a3db79b6951dc7614908a8 (diff)
song: don't convert id to int
it serves no real purpose.
Diffstat (limited to 'nephilim/song.py')
-rw-r--r--nephilim/song.py4
1 files changed, 1 insertions, 3 deletions
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)."""