Mercurial > code > home > repos > light9
changeset 616:f85304fdc975
cleanup no-song logic
Ignore-this: e03fc8ed94bbda94c63ae947ab4939bd
author | drewp@bigasterisk.com |
---|---|
date | Tue, 22 Jun 2010 02:27:30 +0000 |
parents | 721269c8dd70 |
children | 94039df5cdd9 |
files | light9/vidref/replay.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/vidref/replay.py Tue Jun 22 00:48:16 2010 +0000 +++ b/light9/vidref/replay.py Tue Jun 22 02:27:30 2010 +0000 @@ -38,7 +38,7 @@ a new replay view) """ t1 = time.time() - if position.get('started') != self.lastStart: + if position.get('started') != self.lastStart and position['song']: self.loadViewsForSong(position['song']) self.lastStart = position['started'] for v in self.views: @@ -54,9 +54,6 @@ v.destroy() self.views[:] = [] - if not song: - return - d = songDir(song) try: takes = sorted(t for t in os.listdir(d) if t.isdigit())