From a2319a1338859c8d0be48d412672dcd1d8f8caba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Mar 2015 16:12:17 +0530 Subject: [PATCH] Allow disabling of tags download from Amazon --- src/calibre/ebooks/metadata/sources/amazon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/amazon.py b/src/calibre/ebooks/metadata/sources/amazon.py index 3564c2f1cf..c31e236d8f 100644 --- a/src/calibre/ebooks/metadata/sources/amazon.py +++ b/src/calibre/ebooks/metadata/sources/amazon.py @@ -676,7 +676,7 @@ class Amazon(Source): capabilities = frozenset(['identify', 'cover']) touched_fields = frozenset(['title', 'authors', 'identifier:amazon', 'rating', 'comments', 'publisher', 'pubdate', - 'languages', 'series']) + 'languages', 'series', 'tags']) has_html_comments = True supports_gzip_transfer_encoding = True prefer_results_with_isbn = False @@ -1244,7 +1244,7 @@ if __name__ == '__main__': # tests {{{ stop = len(tests) tests = tests[start:stop] test_identify_plugin(Amazon.name, tests, modify_plugin=lambda - p:setattr(p, 'testing_domain', domain)) + p:(setattr(p, 'testing_domain', domain), setattr(p, 'touched_fields', p.touched_fields - {'tags'}))) do_test('com')