From 573c5f2910ee310d9c63c0edece3b2f553b0887c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 10 Apr 2011 10:14:42 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/sources/amazon.py | 2 +- .../gui2/preferences/metadata_sources.py | 11 ++ .../gui2/preferences/metadata_sources.ui | 117 ++++++++++++++++++ src/calibre/utils/config.py | 2 - 4 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 src/calibre/gui2/preferences/metadata_sources.py create mode 100644 src/calibre/gui2/preferences/metadata_sources.ui diff --git a/src/calibre/ebooks/metadata/sources/amazon.py b/src/calibre/ebooks/metadata/sources/amazon.py index 5262ee0d1d..3ffb95f2fb 100644 --- a/src/calibre/ebooks/metadata/sources/amazon.py +++ b/src/calibre/ebooks/metadata/sources/amazon.py @@ -279,7 +279,7 @@ class Worker(Thread): # Get details {{{ class Amazon(Source): - name = 'Amazon Web' + name = 'Amazon.com' description = _('Downloads metadata from Amazon') capabilities = frozenset(['identify', 'cover']) diff --git a/src/calibre/gui2/preferences/metadata_sources.py b/src/calibre/gui2/preferences/metadata_sources.py new file mode 100644 index 0000000000..cc6da1e995 --- /dev/null +++ b/src/calibre/gui2/preferences/metadata_sources.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai +from __future__ import (unicode_literals, division, absolute_import, + print_function) + +__license__ = 'GPL v3' +__copyright__ = '2011, Kovid Goyal ' +__docformat__ = 'restructuredtext en' + + + diff --git a/src/calibre/gui2/preferences/metadata_sources.ui b/src/calibre/gui2/preferences/metadata_sources.ui new file mode 100644 index 0000000000..9cb5943dfe --- /dev/null +++ b/src/calibre/gui2/preferences/metadata_sources.ui @@ -0,0 +1,117 @@ + + + StackedWidget + + + + 0 + 0 + 766 + 447 + + + + StackedWidget + + + + + + + Metadata sources + + + + + + <p>Disable any metadata sources you do not want by unchecking them. You can also set the cover priority. Covers from sources that have a higher (smaller) priority will be preferred when bulk downloading metadata. +<p>Double click on a metadata source to customize it. + + + true + + + + + + + + + + + + + Downloaded metadata fields + + + + + + If you uncheck any fields, metadata for those fields will not be downloaded + + + + + + + + + + Convert all downloaded comments to plain &text + + + + + + + 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 &cover is found: + + + opt_wait_after_first_cover_result + + + + + + + secs + + + + + + + + + + diff --git a/src/calibre/utils/config.py b/src/calibre/utils/config.py index 7f2c75a272..66316d051b 100644 --- a/src/calibre/utils/config.py +++ b/src/calibre/utils/config.py @@ -785,8 +785,6 @@ def write_tweaks(raw): tweaks = read_tweaks() test_eight_code = tweaks.get('test_eight_code', False) -# test_eight_code notes -# Change Amazon plugin name to just Amazon def migrate(): if hasattr(os, 'geteuid') and os.geteuid() == 0: