summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix5/cdplayer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-irix5/cdplayer.py')
-rwxr-xr-xLib/plat-irix5/cdplayer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/plat-irix5/cdplayer.py b/Lib/plat-irix5/cdplayer.py
index 2839021..deec996 100755
--- a/Lib/plat-irix5/cdplayer.py
+++ b/Lib/plat-irix5/cdplayer.py
@@ -21,6 +21,13 @@ class Cdplayer():
import string
self.artist = ''
self.title = ''
+ if type(tracklist) == type(''):
+ t = []
+ for i in range(2, len(tracklist), 4):
+ t.append((None, \
+ (string.atoi(tracklist[i:i+2]), \
+ string.atoi(tracklist[i+2:i+4]))))
+ tracklist = t
self.track = [None] + [''] * len(tracklist)
self.id = 'd' + string.zfill(len(tracklist), 2)
for track in tracklist: