diff --git a/src/calibre/ebooks/metadata/sources/base.py b/src/calibre/ebooks/metadata/sources/base.py index 95aa5a3563..47b9f00d30 100644 --- a/src/calibre/ebooks/metadata/sources/base.py +++ b/src/calibre/ebooks/metadata/sources/base.py @@ -26,6 +26,7 @@ msprefs.defaults['wait_after_first_identify_result'] = 30 # seconds msprefs.defaults['wait_after_first_cover_result'] = 60 # seconds msprefs.defaults['swap_author_names'] = False msprefs.defaults['fewer_tags'] = True +msprefs.defaults['find_first_edition_date'] = True # Google covers are often poor quality (scans/errors) but they have high # resolution, so they trump covers from better sources. So make sure they diff --git a/src/calibre/ebooks/metadata/sources/identify.py b/src/calibre/ebooks/metadata/sources/identify.py index 5113342b83..16aa39d59d 100644 --- a/src/calibre/ebooks/metadata/sources/identify.py +++ b/src/calibre/ebooks/metadata/sources/identify.py @@ -120,6 +120,8 @@ class ISBNMerge(object): self.log.debug(xw.tb) else: isbns, min_year = xw.isbns, xw.min_year + if not msprefs['find_first_edition_date']: + min_year = None if not isbns: isbns = frozenset([isbn]) if isbns in self.pools: diff --git a/src/calibre/gui2/preferences/metadata_sources.py b/src/calibre/gui2/preferences/metadata_sources.py index 541da2e203..db4d4a01e9 100644 --- a/src/calibre/gui2/preferences/metadata_sources.py +++ b/src/calibre/gui2/preferences/metadata_sources.py @@ -296,6 +296,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): r('wait_after_first_cover_result', msprefs) r('swap_author_names', msprefs) r('fewer_tags', msprefs) + r('find_first_edition_date', msprefs) self.configure_plugin_button.clicked.connect(self.configure_plugin) self.sources_model = SourcesModel(self) diff --git a/src/calibre/gui2/preferences/metadata_sources.ui b/src/calibre/gui2/preferences/metadata_sources.ui index 89f6454df7..cef0e8562b 100644 --- a/src/calibre/gui2/preferences/metadata_sources.ui +++ b/src/calibre/gui2/preferences/metadata_sources.ui @@ -7,7 +7,7 @@ 0 0 781 - 394 + 439 @@ -21,7 +21,7 @@ - + Metadata sources @@ -104,22 +104,22 @@ + + Restore your own subset of checked fields that you define using the 'Set as default' button + &Select default - - Restore your own subset of checked fields that you define using the 'Set as default' button - + + Store the currently checked fields as a default you can restore using the 'Select default' button + &Set as default - - Store the currently checked fields as a default you can restore using the 'Select default' button - @@ -139,7 +139,7 @@ - + Max. number of &tags to download: @@ -149,10 +149,10 @@ - + - + Max. &time to wait after first match is found: @@ -162,14 +162,14 @@ - + secs - + Max. time to wait after first &cover is found: @@ -179,14 +179,14 @@ - + 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. @@ -197,6 +197,13 @@ + + + + Use published date of earliest "edition" (from worldcat.org) + + +