Changeset - 5db8e7698d6a
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-05-20 00:00:06
drewp@bigasterisk.com
reformat
2 files changed with 11 insertions and 14 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/musictime_client.py
Show inline comments
 
@@ -17,10 +17,7 @@ class MusicTime(object):
 
    upon request, adjusted to be more precise with the system clock
 
    """
 

	
 
    def __init__(self,
 
                 period=.2,
 
                 onChange=lambda position: None,
 
                 pollCurvecalc='ignored'):
 
    def __init__(self, period=.2, onChange=lambda position: None, pollCurvecalc='ignored'):
 
        """period is the seconds between
 
        http time requests.
 

	
 
@@ -67,8 +64,7 @@ class MusicTime(object):
 
        def cb(response):
 

	
 
            if response.code != 200:
 
                raise ValueError("%s %s", response.code,
 
                                 (yield response.content()))
 
                raise ValueError("%s %s", response.code, (yield response.content()))
 

	
 
            position = yield response.json()
 

	
light9/ascoltami/webapp.py
Show inline comments
 
@@ -34,14 +34,15 @@ class config(cyclone.web.RequestHandler)
 
    def get(self):
 
        self.set_header("Content-Type", "application/json")
 
        self.write(
 
            json.dumps(dict(
 
                host=socket.gethostname(),
 
                show=str(showUri()),
 
                times={
 
                    # these are just for the web display. True values are on Player.__init__
 
                    'intro': 4,
 
                    'post': 0
 
                })))
 
            json.dumps(
 
                dict(
 
                    host=socket.gethostname(),
 
                    show=str(showUri()),
 
                    times={
 
                        # these are just for the web display. True values are on Player.__init__
 
                        'intro': 4,
 
                        'post': 0
 
                    })))
 

	
 

	
 
def playerSongUri(graph, player):
0 comments (0 inline, 0 general)