Add option to only extract specific labels

Add UI element for a comma-separated list of labels to extract by.
Should work with both Label and LabelPlus plugins.
If no filter is specified, it will extract anything.
This commit is contained in:
d8ahazard
2019-10-25 11:52:23 -05:00
parent 739a93351a
commit ad8049b89a
5 changed files with 189 additions and 60 deletions

View File

@@ -69,7 +69,8 @@ class GtkUI(Gtk3PluginBase):
config = {
'extract_path': path,
'use_name_folder': self.builder.get_object('chk_use_name').get_active(),
'in_place_extraction': self.builder.get_object("chk_in_place_extraction").get_active()
'in_place_extraction': self.builder.get_object("chk_in_place_extraction").get_active(),
'extract_labels': self.builder.get_object("entry_labels").get_text()
}
client.extractor.set_config(config)
@@ -94,5 +95,6 @@ class GtkUI(Gtk3PluginBase):
config['use_name_folder']
)
self.builder.get_object('chk_in_place_extraction').set_active(config['in_place_extraction'])
self.builder.get_object('entry_labels').set_text(config['extract_labels'])
client.extractor.get_config().addCallback(on_get_config)