65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 | if self.last >= len(streams):
self.last = 0
elif self.last < 0:
self.last = len(streams)-1
# play
i = self.last
action.action.play(streams[i]["url"], streams[i]["format"])
# set pointer in gtk.TreeView
if self.parent.channels[channel].current == cat:
self.parent.channels[channel].gtk_list.get_selection().select_path(i)
|
|
| 65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 | if self.last >= len(streams):
self.last = 0
elif self.last < 0:
self.last = len(streams)-1
# play
i = self.last
action.play(streams[i]["url"], streams[i]["format"])
# set pointer in gtk.TreeView
if self.parent.channels[channel].current == cat:
self.parent.channels[channel].gtk_list.get_selection().select_path(i)
|