Mercurial > code > home > repos > light9
changeset 1179:65405b3311f6
dead code
Ignore-this: 19fc9344a2ffe34598ccccd5738bd1a6
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 15 Jun 2014 07:42:51 +0000 |
parents | a296d842d0da |
children | 6c4981f61bf8 |
files | light9/curvecalc/musicaccess.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/curvecalc/musicaccess.py Sun Jun 15 07:17:48 2014 +0000 +++ b/light9/curvecalc/musicaccess.py Sun Jun 15 07:42:51 2014 +0000 @@ -1,4 +1,3 @@ -import restkit import json from louie import dispatcher from rdflib import URIRef @@ -76,11 +75,3 @@ self.player.request("POST", networking.musicPlayer.path("seekPlayOrPause"), bodyProducer=StringProducer(json.dumps({"t" : t}))) - -def currentlyPlayingSong(): - """ask the music player what song it's on""" - player = restkit.Resource(networking.musicPlayer.url) - t = json.loads(player.get("time").body_string()) - if t['song'] is None: - raise ValueError("music player is not playing any song") - return URIRef(t['song'])