Changeset - 1627032629dc
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 12 years ago 2013-06-16 21:42:55
drewp@bigasterisk.com
add a note about the fix for song orders
Ignore-this: 8b88b1f9016a675fe9eb1d9a7d619e2f
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/playlist.py
Show inline comments
 
@@ -21,24 +21,26 @@ class Playlist(object):
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song7"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song8"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song9"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song10"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song11"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song12"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song13"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song14"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song15"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song16"),
 
            URIRef("http://light9.bigasterisk.com/show/dance2013/song17"),
 
        ]
 
        # probably fixed with the patch in https://github.com/RDFLib/rdflib/issues/305
 
        #self.songs = list(graph.items(playlistUri))
 
        
 
    def nextSong(self, currentSong):
 
        """Returns the next song in the playlist or raises NoSuchSong if 
 
        we are at the end of the playlist."""
 
        try:
 
            currentIndex = self.songs.index(currentSong)
 
        except IndexError:
 
            raise ValueError("%r is not in the current playlist (%r)." % \
 
                (currentSong, self.playlistUri))
 

	
 
        try:
 
            nextSong = self.songs[currentIndex + 1]
light9/showconfig.py
Show inline comments
 
@@ -87,24 +87,26 @@ def getSongsFromShow(graph, show):
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song7"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song8"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song9"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song10"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song11"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song12"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song13"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song14"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song15"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song16"),
 
        URIRef("http://light9.bigasterisk.com/show/dance2013/song17"),
 
    ]
 
    # probably fixed with the patch in https://github.com/RDFLib/rdflib/issues/305
 
    #songs = list(graph.items(playList))
 

	
 
    return songs
 

	
 
def curvesDir():
 
    return path.join(root(),"curves")
 

	
 
def songFilename(song):
 
    return path.join(root(), "music", "%s.wav" % song)
 

	
 
def subtermsForSong(song):
 
    return path.join(root(),"subterms",song)
 

	
0 comments (0 inline, 0 general)