diff --git a/src/calibre/gui2/preferences/metadata_sources.py b/src/calibre/gui2/preferences/metadata_sources.py index e3dcbcfb15..d26606e70f 100644 --- a/src/calibre/gui2/preferences/metadata_sources.py +++ b/src/calibre/gui2/preferences/metadata_sources.py @@ -399,6 +399,6 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): if __name__ == '__main__': - from PyQt5.Qt import QApplication - app = QApplication([]) + from calibre.gui2 import Application + app = Application([]) test_widget('Sharing', 'Metadata download') diff --git a/src/calibre/gui2/preferences/metadata_sources.ui b/src/calibre/gui2/preferences/metadata_sources.ui index 072371f233..13df32f40e 100644 --- a/src/calibre/gui2/preferences/metadata_sources.ui +++ b/src/calibre/gui2/preferences/metadata_sources.ui @@ -6,14 +6,14 @@ 0 0 - 781 - 492 + 733 + 673 Form - + 0 @@ -26,159 +26,11 @@ 0 - + - - - - - Max. &number of tags to download: - - - opt_max_tags - - - - - - - Use &published date of "first edition" (from worldcat.org) - - - - - - - Max. &time to wait after first match is found: - - - opt_wait_after_first_identify_result - - - - - - - Max. time to wait after first &cover is found: - - - opt_wait_after_first_cover_result - - - - - - - secs - - - - - - - <p>Different metadata sources have different sets of tags for the same book. If this option is checked, then calibre will use the smaller tag sets. These tend to be more like genres, while the larger tag sets tend to describe the books content. -<p>Note that this option will only make a practical difference if one of the metadata sources has a genre like tag set for the book you are searching for. Most often, they all have large tag sets. - - - Prefer smaller tag sets when picking tags from different metadata sources - - - Prefer &fewer tags - - - - - - - Swap &author names from FN LN to LN, FN - - - - - - - Metadata fields to download - - - - - - If you uncheck any fields, metadata for those fields will not be downloaded - - - QAbstractItemView::NoSelection - - - - - - - &Select all - - - - - - - &Clear all - - - - - - - Restore your own subset of checked fields that you define using the 'Set as default' button - - - &Select default - - - - - - - Store the currently checked fields as the default, you can quickly apply the default using the 'Select default' button - - - &Set as default - - - - - - - - - - Convert all downloaded comments to plain &text - - - - - - - - - - secs - - - - - - - <p>When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them. - - - When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them. - - - Append comments to &existing - - - - + + Metadata sources @@ -229,19 +81,196 @@ - - - - Create &rules to filter/transform tags - - - - - - - Create rules to &transform author names - - + + + + + + Metadata fields to download + + + + + + If you uncheck any fields, metadata for those fields will not be downloaded + + + QAbstractItemView::NoSelection + + + + + + + &Select all + + + + + + + &Clear all + + + + + + + Restore your own subset of checked fields that you define using the 'Set as default' button + + + &Select default + + + + + + + Store the currently checked fields as the default, you can quickly apply the default using the 'Select default' button + + + &Set as default + + + + + + + + + + true + + + + + 0 + 0 + 373 + 341 + + + + + 0 + 0 + + + + + + + Convert all downloaded comments to plain &text + + + + + + + Swap &author names from FN LN to LN, FN + + + + + + + <p>When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them. + + + When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them. + + + Append comments to &existing + + + + + + + Use &published date of "first edition" (from worldcat.org) + + + + + + + <p>Different metadata sources have different sets of tags for the same book. If this option is checked, then calibre will use the smaller tag sets. These tend to be more like genres, while the larger tag sets tend to describe the books content. +<p>Note that this option will only make a practical difference if one of the metadata sources has a genre like tag set for the book you are searching for. Most often, they all have large tag sets. + + + Prefer smaller tag sets when picking tags from different metadata sources + + + Prefer &fewer tags + + + + + + + Create &rules to filter/transform tags + + + + + + + Create rules to &transform author names + + + + + + + + + + Max. &number of tags to download: + + + opt_max_tags + + + + + + + Max. &time to wait after first match is found: + + + opt_wait_after_first_identify_result + + + + + + + secs + + + + + + + Max. time to wait after first &cover is found: + + + opt_wait_after_first_cover_result + + + + + + + secs + + + + + + + +