Mercurial > code > home > repos > light9
diff bin/ascoltami2 @ 788:8d87a3528369
go button support
Ignore-this: e32b66cb39bf05a2fec5c91fdb7a7093
author | drewp@bigasterisk.com |
---|---|
date | Mon, 18 Jun 2012 01:13:18 +0000 |
parents | a301a0039c66 |
children | cbfed4e684ef |
line wrap: on
line diff
--- a/bin/ascoltami2 Mon Jun 18 00:42:48 2012 +0000 +++ b/bin/ascoltami2 Mon Jun 18 01:13:18 2012 +0000 @@ -4,7 +4,7 @@ sys.path.append(".") from light9.ascoltami.player import Player from light9.ascoltami.playlist import Playlist, NoSuchSong -from light9.ascoltami.webapp import makeWebApp +from light9.ascoltami.webapp import makeWebApp, songUri, songLocation from light9 import networking, showconfig @@ -33,14 +33,14 @@ self.player.pause() self.player.seek(0) - # stop here for now- no go-button behavior - return + thisSongUri = songUri(graph, URIRef(song)) + try: - nextSong = self.playlist.nextSong(song) + nextSong = self.playlist.nextSong(thisSongUri) except NoSuchSong: # we're at the end of the playlist return - self.player.setSong(nextSong, play=False) + self.player.setSong(songLocation(graph, nextSong), play=False) if __name__ == "__main__": logging.basicConfig()