Check-in [48dc4b4834]
Overview
| Comment: | Bug was from wget´s --local-encoding (select:/Combobox option) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
48dc4b4834aac0b38cb05174e4fe6654 |
| User & Date: | mario on 2020-05-18 14:02:53 |
| Other Links: | manifest | tags |
Context
|
2020-05-18
| ||
| 17:27 | Introduce wiki/links source for according bookmarks category. check-in: aa18167fee user: mario tags: trunk | |
| 14:02 | Bug was from wget´s --local-encoding (select:/Combobox option) check-in: 48dc4b4834 user: mario tags: trunk | |
| 13:34 | Fix bug (too late to reproduce) for bool option being applied to ComboBoxText in record_flags/configwin check-in: 686334f27e user: mario tags: trunk | |
Changes
Modified contrib/recordflags.py from [3b2e370ba5] to [ce628208a5].
| ︙ | ︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
class recordflags (FeaturePlugin):
# settings
cfg_widget_pfx = "recordoptions_config_"
widgets = {}
# available options per recording tool
flag_meta = {
"streamripper": {
"title": "streamripper",
"priority": "required",
"type": "app",
"category": "recording",
"version": "1.64.6",
| > > | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
class recordflags (FeaturePlugin):
# settings
cfg_widget_pfx = "recordoptions_config_"
widgets = {}
# available options per recording tool
# · each dict here is basically a plugin meta data block,
# · with config=[] being applied by configwin.save/load/add_widgets
flag_meta = {
"streamripper": {
"title": "streamripper",
"priority": "required",
"type": "app",
"category": "recording",
"version": "1.64.6",
|
| ︙ | ︙ | |||
169 170 171 172 173 174 175 |
{ "name":"nc", "arg":"-nc", "type": "bool", "description": "<b>-nc</b> No-clobber, keep existing files.", "value": False },
{ "name": "N", "arg": "-N", "type": "bool", "description": "<b>-N</b> Only fetch newer files", "value": False },
{ "name": "O", "arg": "-O", "type": "str", "description": "<b>-O</b> Output to file", "value": "" },
{ "name": "dir", "arg": "-P", "type": "str", "description": "<b>-P</b> Directory prefix", "value": "" },
# meta
{ "name": "v", "arg": "-v", "type": "bool", "description": "<b>-v</b> Verbose mode", "value": False, "category": "meta" },
{ "name": "d", "arg": "-d", "type": "bool", "description": "<b>-d</b> Debug mode", "value": False, "category": "meta" },
| | | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
{ "name":"nc", "arg":"-nc", "type": "bool", "description": "<b>-nc</b> No-clobber, keep existing files.", "value": False },
{ "name": "N", "arg": "-N", "type": "bool", "description": "<b>-N</b> Only fetch newer files", "value": False },
{ "name": "O", "arg": "-O", "type": "str", "description": "<b>-O</b> Output to file", "value": "" },
{ "name": "dir", "arg": "-P", "type": "str", "description": "<b>-P</b> Directory prefix", "value": "" },
# meta
{ "name": "v", "arg": "-v", "type": "bool", "description": "<b>-v</b> Verbose mode", "value": False, "category": "meta" },
{ "name": "d", "arg": "-d", "type": "bool", "description": "<b>-d</b> Debug mode", "value": False, "category": "meta" },
{ "name": "enc", "arg": "--local-encoding", "type": "select", "select": "UTF-8|ISO-8859-1|ISO-8859-15", "description": "<b>--local-encoding</b>", "value": "", "category": "meta" },
{ "name": "e", "arg": "-e", "type": "str", "description": "<b>-e</b> wgetrc-command", "value": "", "category": "meta" },
# net
{ "name": "noch", "arg": "--no-cache", "type": "bool", "description": "<b>-S</b> No cached files", "value": False, "category": "net" },
{ "name": "limit", "arg": "--limit-rate", "type": "int", "description": "<b>--limit-rate</b> Max download speed", "value": 0, "category": "net" },
{ "name": "S", "arg": "-S", "type": "bool", "description": "<b>-S</b> Show response headers", "value": False, "category": "net" },
{ "name": "U", "arg": "-U", "type": "str", "description": "<b>-U</b> Useragent to send", "value": "", "category": "net" },
{ "name": "ref", "arg": "--referer", "type": "str", "description": "<b>--referer</b> to send", "value": "", "category": "net" },
|
| ︙ | ︙ | |||
292 293 294 295 296 297 298 |
self.load_config_widgets(row, self.app, p)
# show window
p.win_recordoptions.show()
# populate config widgets, seth defaults/current settings
def load_config_widgets(self, row, group="streamripper", p=None):
# clean up previous
| | > > | 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
self.load_config_widgets(row, self.app, p)
# show window
p.win_recordoptions.show()
# populate config widgets, seth defaults/current settings
def load_config_widgets(self, row, group="streamripper", p=None):
# clean up previous
for vbox in self.cfg_vbox.values():
for w in vbox.get_children():
vbox.remove(w)
# add plugins
self.parent.configwin.add_plg(
group, self.flag_meta[group], self.pack_option, self.cfg_widget_pfx
)
# set values
self.parent.configwin.load_config(
self.configdict_from_args(row), self.cfg_widget_pfx, widgets=self.widgets
|
| ︙ | ︙ |