Check-in [6cea64726f]
Overview
Comment: | Fix cmd= parameter handling. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6cea64726f037389ae4d61e602350ff7 |
User & Date: | mario on 2018-12-16 20:06:07 |
Other Links: | manifest | tags |
Context
2018-12-17
| ||
16:49 | Support for RT-NG direct bookmarks.json saving. check-in: b5f2654777 user: mario tags: trunk | |
2018-12-16
| ||
20:06 | Fix cmd= parameter handling. check-in: 6cea64726f user: mario tags: trunk | |
19:37 | Preliminary support for Radiotray-NG check-in: 0763c7e201 user: mario tags: trunk | |
Changes
Modified channels/specbuttons.py from [06e8ddd1d2] to [9ee8fca8b8].
1 2 3 | # encoding: utf-8 # title: Spec buttons for apps # description: Adds configurable mini toolbar buttons | | | 1 2 3 4 5 6 7 8 9 10 11 | # encoding: utf-8 # title: Spec buttons for apps # description: Adds configurable mini toolbar buttons # version: 0.8.3 # depends: streamtuner2 >= 2.2.0 # type: feature # category: ui # config: # { name: specbutton_rows, value: 2, max: 4, type: int, description: "Number of rows to arrange buttons in." } # { name: specbuttons, type: dict, columns: "Icon,Command", description: "Icons can be `<a href='http://www.pygtk.org/pygtk2reference/gtk-stock-items.html'>gtk-xyz</a>` internal names. Else use `/usr/share/icon/*.png` file names. Icon file basenames will be expanded into full paths." } # documentation: |
︙ | ︙ | |||
126 127 128 129 130 131 132 | conf.specbuttons = r self.update_buttons(self.parent) # Button callback, allow for %url/%title placeholders def action(self, cmd): if re.search("[%$]", cmd): row = self.parent.channel().row() | | > | | 126 127 128 129 130 131 132 133 134 135 136 | conf.specbuttons = r self.update_buttons(self.parent) # Button callback, allow for %url/%title placeholders def action(self, cmd): if re.search("[%$]", cmd): row = self.parent.channel().row() action.run_fmt_url(row=row, add_default=False, cmd=cmd) else: action.run(cmd) |