# Author: Guillaume Pellerin <pellerin@parisson.com>
depends: python, python-dev, python-xml, python-shout | shout-python, libshout3,
- libshout3-dev, python-mutagen, python-setuptools, python-twitter
+ libshout3-dev, python-mutagen
provides: shout-python
- optional: python-liblo | pyliblo (>= 0.26)
+ optional: python-twitter, python-tinyurl, python-liblo | pyliblo (>= 0.26)
recommends: icecast2
sys.exit()
# send message "/foo/message1" with int, float and string arguments
-liblo.send(target, "/relay", 1)
+liblo.send(target, "/media/relay", 1)
sys.exit()
# send message "/foo/message1" with int, float and string arguments
-liblo.send(target, "/relay", 0)
+liblo.send(target, "/media/relay", 0)
media.metadata = {'artist': self.artist, 'title': self.title, 'album': self.short_name, 'genre': self.channel.genre}
media.write_tags()
self.record_mode = value
- message = "Received OSC message '%s' with arguments '%d' : Writing metatada to the file..." % (path, value)
+ message = "Received OSC message '%s' with arguments '%d'" % (path, value)
self.logger.write_info(message)
def player_callback(self, path, value):
self.logger.write_error('Station ' + self.short_name + ' : could not send the buffer to the server ')
try:
self.channel.open()
+ self.channel.set_metadata({'song': self.song, 'charset': 'utf8',})
except:
self.logger.write_error('Station ' + self.short_name + ' : could connect to the server ')
continue