]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed Track's pos attribute type
authorkaliko <efrim@azylum.org>
Sun, 15 Dec 2013 15:40:45 +0000 (16:40 +0100)
committerkaliko <efrim@azylum.org>
Sun, 15 Dec 2013 15:40:45 +0000 (16:40 +0100)
sima/lib/track.py

index c88de6c1b3b9f511691a073c65553c8e2d2afd40..93904c80c9688ca851a9e930d7ed4595bb9c32d5 100644 (file)
@@ -32,7 +32,7 @@ class Track(object):
 
     def __init__(self, file=None, time=0, pos=-1, **kwargs):
         self.title = self.artist = self.album = self.albumartist = ''
-        self.pos = pos
+        self.pos = int(pos)
         self._empty = False
         self._file = file
         if not kwargs: