# HG changeset patch # User drewp@bigasterisk.com # Date 1213576650 0 # Node ID b0954240778d304fbbe97464dbb5ae63eb5784aa # Parent b239d8c9f06f4e2bf623b1687dec67e8c7f95f28 fix bogus asco error after last song. Untested. diff -r b239d8c9f06f -r b0954240778d bin/ascoltami --- a/bin/ascoltami Mon Jun 16 00:00:13 2008 +0000 +++ b/bin/ascoltami Mon Jun 16 00:37:30 2008 +0000 @@ -278,10 +278,10 @@ if state == 'stop': currentPath = self.player.song_uri try: - i = self.songURIs.index(currentPath) + 1 - except ValueError: - i = 0 - nextPath = self.songURIs[i] + nextPath = self.songURIs[self.songURIs.index(currentPath) + 1] + except (ValueError, IndexError): + nextPath = self.songURIs[0] + return ("next song %s" % shortSongPath(nextPath, self.songURIs), lambda: self.player.play(nextPath)) diff -r b239d8c9f06f -r b0954240778d show/dance2008/readme --- a/show/dance2008/readme Mon Jun 16 00:00:13 2008 +0000 +++ b/show/dance2008/readme Mon Jun 16 00:37:30 2008 +0000 @@ -113,7 +113,7 @@ record-everything mode that makes curves out of whatever happens on stage - asco makes lots of errors after you play through the last song +OK asco makes lots of errors after you play through the last song five second post