def elapsed_changed(self, player, entry, data=None):
if self.first_run:
self.on_first_run()
return
try:
pb_time = self.shell_player.get_playing_time()[1]
if self.playback_time:
save_time = True
else:
save_time = False
if save_time and self.playback_time == self.shell_player.get_playing_time()[1]:
save_time = False
if pb_time % 5 == 0:
self.playback_time = self.shell_player.get_playing_time()[1]
GObject.idle_add(self.save_rhythm)
except:
pass
stackoverflow.com/questions/18938180/how-to-get-th...
www.tutorialspoint.com/jquery/ajax-jquery-get.htm