diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index 478dac503..e06d3b144 100644 --- a/deluge/plugins/label/label/core.py +++ b/deluge/plugins/label/label/core.py @@ -172,12 +172,12 @@ class Core(CorePluginBase): self.clean_config() self.config.save() - @export() + @export def get_labels(self): return sorted(self.labels.keys()) #Labels: - @export() + @export def add(self, label_id): """add a label see label_set_options for more options. @@ -258,7 +258,7 @@ class Core(CorePluginBase): return True return False - @export() + @export def set_options(self, label_id, options_dict , apply = False): """update the label options @@ -295,12 +295,12 @@ class Core(CorePluginBase): self.config.save() - @export() + @export def get_options(self, label_id): """returns the label options""" return self.labels[label_id] - @export() + @export def set_torrent(self, torrent_id , label_id): """ assign a label to a torrent @@ -322,12 +322,12 @@ class Core(CorePluginBase): self.config.save() - @export() + @export def get_config(self): """see : label_set_config""" return dict((key, self.config[key]) for key in CORE_OPTIONS if key in self.config.config) - @export() + @export def set_config(self, options): """global_options:""" if options: