Index: contrib/recordflags.py ================================================================== --- contrib/recordflags.py +++ contrib/recordflags.py @@ -1,10 +1,10 @@ # encoding: utf-8 # api: streamtuner2 # title: Recording options # description: Allows to set streamripper/fIcy options before recording -# version: 0.8 +# version: 0.8.1 # depends: streamtuner2 > 2.2.0 # conflicts: continuous_record # priority: optional # config: # { name: recordflags_auto, type: bool, value: 1, description: Apply options automatically once saved. } @@ -64,11 +64,11 @@ "description": "Standard radio/stream recording tool", "doc": "streamripper is the standard tool for recording and extracting songs from internet radio stations. It does have a plethora of options, some of which are available here:", "config": [ #{ "name": "A", "arg": "-A", "type": "bool", "description": "-A Don't split individual tracks/MP3s", "value": False }, { "name": "Aa", "arg": "-A -a", "type": "str", "description": "-a Single MP3 output filename. (Instead of splitting by song.)", "value": "" }, - { "name": "dir", "arg": "-d", "type": "str", "description": "-s Destination directory", "value": "" }, + { "name": "dir", "arg": "-d", "type": "str", "description": "-d Destination directory", "value": "" }, { "name": "D", "arg": "-D", "type": "str", "description": "-D Filename pattern", "value": "" }, { "name": "s", "arg": "-s", "type": "bool", "description": "-s No subdirectories for each stream", "value": False }, { "name": "o", "arg": "-o", "type": "select", "description": "-o Incomplete track overwriting", "select": "|always|never|larger|version", "value": "" }, { "name": "t", "arg": "-t", "type": "bool", "description": "-t Never overwrite incomplete tracks", "value": False, "category": "extra" }, { "name": "T", "arg": "-T", "type": "bool", "description": "-T Truncate duplicated incompletes", "value": False, "category": "extra" }, @@ -265,11 +265,12 @@ self.load_config(self.configdict_from_args(row), self.cfg_widget_pfx, widgets=self.widgets) # clean up options according to each {category:} and `recordflags_extra` def filter_options(self, meta): meta = copy.copy(meta) - filter = ["basic", conf.recordflags_extra, None, {"verbose":["extra"]}.get(conf.recordflags_extra)] + filter = ["basic", conf.recordflags_extra, None, {"verbose":"extra"}.get(conf.recordflags_extra)] + log.CONF(filter) meta["config"] = [desc for desc in meta["config"] if desc.get("category") in filter] return meta # Put config widgets into recordoptions_cfg vbox def add_flag(self, id=None, w=None, label=None, color=None, image=None, align=5):