formatted comment. added TODO

This commit is contained in:
Rudi Grinberg 2012-10-31 10:48:03 -04:00
parent 09c3e3a694
commit 8e6f6b8894

View file

@ -212,14 +212,13 @@ class AirtimeApiClient(object):
def notify_liquidsoap_started(self):
return self.services.notify_liquidsoap_started()
"""
This is a callback from liquidsoap, we use this to notify about the
currently playing *song*. We get passed a JSON string which we handed to
liquidsoap in get_liquidsoap_data().
"""
def notify_media_item_start_playing(self, media_id):
""" This is a callback from liquidsoap, we use this to notify
about the currently playing *song*. We get passed a JSON string
which we handed to liquidsoap in get_liquidsoap_data(). """
return self.services.update_start_playing_url(media_id=media_id)
# TODO : get this routine out of here it doesn't belong at all here
def get_liquidsoap_data(self, pkey, schedule):
playlist = schedule[pkey]
data = dict()