1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
# encoding: UTF-8
# api: python
# type: application
# title: streamtuner2
# description: Directory browser for internet radio, audio and video streams
# version: 2.2.1
# state: stable
# author: Mario Salzer <mario@include-once.org>
# license: Public Domain
# url: http://freshcode.club/projects/streamtuner2
# config:
# { type: env, name: HTTP_PROXY, description: proxy for HTTP access }
# { type: env, name: XDG_CONFIG_HOME, description: relocates user .config subdirectory }
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
# encoding: UTF-8
# api: python
# type: application
# title: streamtuner2
# description: Directory browser for internet radio, audio and video streams
# version: 2.2.1+2020-05
# state: stable
# author: Mario Salzer <mario@include-once.org>
# license: Public Domain
# url: http://freshcode.club/projects/streamtuner2
# config:
# { type: env, name: HTTP_PROXY, description: proxy for HTTP access }
# { type: env, name: XDG_CONFIG_HOME, description: relocates user .config subdirectory }
|
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
log.UI("main.channel_switch() :=", self.current_channel)
# update window title, call plugin (e.g. channel link in toolbar)
if conf.window_title:
uikit.do(self.update_title)
# if first selected, load current category
# (run in thread, to make it look speedy on first startup)
self.thread(self.channel().first_show)
# Invoked from the menu instead, uses module name instead of numeric tab id
def channel_switch_by_name(self, name):
self.notebook_channels.set_current_page(self.channel_names.index(name))
# Mirror selected channel tab into main window title
def update_title(self, *x, **y):
|
>
|
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
|
log.UI("main.channel_switch() :=", self.current_channel)
# update window title, call plugin (e.g. channel link in toolbar)
if conf.window_title:
uikit.do(self.update_title)
# if first selected, load current category
# (run in thread, to make it look speedy on first startup)
self.thread(self.channel().first_show)
log.UI("channel_switch done.")
# Invoked from the menu instead, uses module name instead of numeric tab id
def channel_switch_by_name(self, name):
self.notebook_channels.set_current_page(self.channel_names.index(name))
# Mirror selected channel tab into main window title
def update_title(self, *x, **y):
|