summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1995-03-01 10:03:08 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1995-03-01 10:03:08 (GMT)
commitd9b6b5c756aaf9c5ab78a5e4cf1855a19215915c (patch)
tree2c2f9b5d2d1008c6cac8434773633fa4f15cc5e0 /Lib
parent8675115e5f55e69fdb30ebba95e7a6a5216e133c (diff)
downloadcpython-d9b6b5c756aaf9c5ab78a5e4cf1855a19215915c.zip
cpython-d9b6b5c756aaf9c5ab78a5e4cf1855a19215915c.tar.gz
cpython-d9b6b5c756aaf9c5ab78a5e4cf1855a19215915c.tar.bz2
Write track artist info if given.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/irix5/cddb.py2
-rwxr-xr-xLib/plat-irix5/cddb.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/irix5/cddb.py b/Lib/irix5/cddb.py
index 53a3981..57cf3c6 100755
--- a/Lib/irix5/cddb.py
+++ b/Lib/irix5/cddb.py
@@ -192,6 +192,8 @@ class Cddb:
f.write('album.notes:\t' + note + '\n')
prevpref = None
for i in range(1, len(self.track)):
+ if self.trackartist[i]:
+ f.write('track'+`i`+'.artist:\t'+self.trackartist[i]+'\n')
track = self.track[i]
try:
off = string.index(track, ',')
diff --git a/Lib/plat-irix5/cddb.py b/Lib/plat-irix5/cddb.py
index 53a3981..57cf3c6 100755
--- a/Lib/plat-irix5/cddb.py
+++ b/Lib/plat-irix5/cddb.py
@@ -192,6 +192,8 @@ class Cddb:
f.write('album.notes:\t' + note + '\n')
prevpref = None
for i in range(1, len(self.track)):
+ if self.trackartist[i]:
+ f.write('track'+`i`+'.artist:\t'+self.trackartist[i]+'\n')
track = self.track[i]
try:
off = string.index(track, ',')