summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <ixce@ed3n-n.aulo.in>2009-07-11 02:59:22 +0200
committerGuillaume Seguin <ixce@ed3n-n.aulo.in>2009-07-11 02:59:22 +0200
commitd460782af4701072b70463329c77333ae3ce4a7f (patch)
tree6cb9881709e0c9b7c73171e3d5d61c67c42b21ed
parentfc2aa869a5e3400e4583853342bb18d533095de0 (diff)
downloadpylyricsdisplay-d460782af4701072b70463329c77333ae3ce4a7f.tar.gz
pylyricsdisplay-d460782af4701072b70463329c77333ae3ce4a7f.tar.bz2
Fix timestamp writing bug in pylyricsrecord.py
-rw-r--r--pylyricsrecord.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylyricsrecord.py b/pylyricsrecord.py
index d1d5628..806078e 100644
--- a/pylyricsrecord.py
+++ b/pylyricsrecord.py
@@ -87,10 +87,10 @@ class LyricsEditor (gtk.TextView):
prev_timer, prev_start = None, None
for (timer, start) in self.timers:
if prev_timer != None:
- f.write ("[%d]%s" % (timer, self.text[prev_start:start]))
+ f.write ("[%d]%s" % (prev_timer, self.text[prev_start:start]))
prev_timer, prev_start = timer, start
if prev_timer != None:
- f.write ("[%d]%s" % (timer, self.text[prev_start:]))
+ f.write ("[%d]%s" % (prev_timer, self.text[prev_start:]))
f.close ()
class PyLyricsRecord (object):