mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow disabling of tags download from Amazon
This commit is contained in:
parent
7b920401d2
commit
a2319a1338
@ -676,7 +676,7 @@ class Amazon(Source):
|
|||||||
capabilities = frozenset(['identify', 'cover'])
|
capabilities = frozenset(['identify', 'cover'])
|
||||||
touched_fields = frozenset(['title', 'authors', 'identifier:amazon',
|
touched_fields = frozenset(['title', 'authors', 'identifier:amazon',
|
||||||
'rating', 'comments', 'publisher', 'pubdate',
|
'rating', 'comments', 'publisher', 'pubdate',
|
||||||
'languages', 'series'])
|
'languages', 'series', 'tags'])
|
||||||
has_html_comments = True
|
has_html_comments = True
|
||||||
supports_gzip_transfer_encoding = True
|
supports_gzip_transfer_encoding = True
|
||||||
prefer_results_with_isbn = False
|
prefer_results_with_isbn = False
|
||||||
@ -1244,7 +1244,7 @@ if __name__ == '__main__': # tests {{{
|
|||||||
stop = len(tests)
|
stop = len(tests)
|
||||||
tests = tests[start:stop]
|
tests = tests[start:stop]
|
||||||
test_identify_plugin(Amazon.name, tests, modify_plugin=lambda
|
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')
|
do_test('com')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user