272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
# Play button
def on_play_clicked(self, widget, event=None, *args):
self.status("Starting player...")
channel = self.channel()
pixstore = [channel.ls, channel.pix_entry, channel.rowno()]
row = channel.play()
self.status("")
[callback(row, pixstore=pixstore) for callback in self.hooks["play"]]
# Recording: invoke streamripper for current stream URL
def on_record_clicked(self, widget):
self.status("Recording station...")
row = self.channel().record()
[callback(row) for callback in self.hooks["record"]]
|
|
|
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
# Play button
def on_play_clicked(self, widget, event=None, *args):
self.status("Starting player...")
channel = self.channel()
pixstore = [channel.ls, channel.pix_entry, channel.rowno()]
row = channel.play()
self.status("")
[callback(row, pixstore=pixstore, channel=channel) for callback in self.hooks["play"]]
# Recording: invoke streamripper for current stream URL
def on_record_clicked(self, widget):
self.status("Recording station...")
row = self.channel().record()
[callback(row) for callback in self.hooks["record"]]
|