Fix undefined local.
This commit is contained in:
parent
616e8fc5ad
commit
e64c442ff7
|
@ -85,7 +85,7 @@ class Cdplayer:
|
|||
new.write(self.id + '.title:\t' + self.title + '\n')
|
||||
new.write(self.id + '.artist:\t' + self.artist + '\n')
|
||||
for i in range(1, len(self.track)):
|
||||
new.write('%s.track.%r:\t%s\n' % (self.id, i, track))
|
||||
new.write('%s.track.%r:\t%s\n' % (self.id, i, self.track[i]))
|
||||
old.close()
|
||||
new.close()
|
||||
posix.rename(filename + '.new', filename)
|
||||
|
|
Loading…
Reference in New Issue