summaryrefslogtreecommitdiff
path: root/nephilim/song.py
diff options
context:
space:
mode:
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)."""