26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 | # Each command may use streamtuner2 placeholders like %g or %url and $title.
import os.path
import subprocess
import math
import re
from config import conf, log
import action
from uikit import gtk
# Extra/mini buttons in toolbar
class specbuttons(object):
module = __name__
# Hook toolbar label
def __init__(self, parent):
self.parent = parent
self.specbuttons = parent.get_widget("specbuttons")
parent.hooks["init"].append(self.update_buttons)
parent.hooks["config_save"].append(self.update_paths)
parent.specbuttons.show()
# Extra buttons
def update_buttons(self, parent): |
|
>
>
>
>
| 26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 | # Each command may use streamtuner2 placeholders like %g or %url and $title.
import os.path
import subprocess
import math
import re
from config import conf, log, plugin_meta
import action
from uikit import gtk
# Extra/mini buttons in toolbar
class specbuttons(object):
meta = plugin_meta()
module = __name__
# Hook toolbar label
def __init__(self, parent):
if not parent:
return
self.parent = parent
conf.add_plugin_defaults(self.meta, self.module)
self.specbuttons = parent.get_widget("specbuttons")
parent.hooks["init"].append(self.update_buttons)
parent.hooks["config_save"].append(self.update_paths)
parent.specbuttons.show()
# Extra buttons
def update_buttons(self, parent): |