Changeset - 9ec0396c6f1f
[Not reviewed]
default
0 3 0
drewp@bigasterisk.com - 14 years ago 2011-06-14 07:40:36
drewp@bigasterisk.com
small asco bugs left over from last year
Ignore-this: e4ff6d000a1f51ee35c507f9f9e74fe9
3 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami2
Show inline comments
 
@@ -4,7 +4,7 @@ from rdflib import URIRef
 
sys.path.append(".")
 
from light9.ascoltami.player import Player
 
from light9.ascoltami.playlist import Playlist, NoSuchSong
 
from light9.ascoltami.webapp import makeApp
 
from light9.ascoltami.webapp import makeWebApp
 
from light9 import networking, showconfig
 

	
 
class App:
light9/ascoltami/player.py
Show inline comments
 
@@ -21,7 +21,8 @@ class Player(object):
 
        self.playStartTime = 0
 
        self.lastWatchTime = 0
 
        self.autoStopTime = 0
 

	
 
        self.onEOS = onEOS
 
        
 
        # before playbin2:
 
        #self.pipeline = gst.parse_launch("filesrc name=file location=%s ! wavparse name=src ! audioconvert ! alsasink name=out" % songFile)
 

	
light9/ascoltami/playlist.py
Show inline comments
 
@@ -7,6 +7,7 @@ class NoSuchSong(ValueError):
 

	
 
class Playlist(object):
 
    def __init__(self, graph, playlistUri):
 
        self.graph = graph
 
        self.songs = list(graph.items(playlistUri))
 
    def nextSong(self, currentSong):
 
        """Returns the next song in the playlist or raises NoSuchSong if 
 
@@ -31,7 +32,7 @@ class Playlist(object):
 
        """Returns a list of the filesystem paths to all songs in order."""
 
        paths = []
 
        for song in self.songs:
 
            p = graph.value(song, L9['showPath'])
 
            p = self.graph.value(song, L9['showPath'])
 
            assert p.startswith("file://"), p
 
            p = p[len("file://"):]
 
            paths.append(p)
0 comments (0 inline, 0 general)