# HG changeset patch # User drewp@bigasterisk.com # Date 1277173650 0 # Node ID f85304fdc9756249fcb80d3732c865c651cf9a13 # Parent 721269c8dd70b458b96aca97bcc9875cf86b84c0 cleanup no-song logic Ignore-this: e03fc8ed94bbda94c63ae947ab4939bd diff -r 721269c8dd70 -r f85304fdc975 light9/vidref/replay.py --- 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())