View Single Post
Old 09-26-2024, 06:09 AM   #8
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
@feuille:

I understand your problem, but it is not directly related to identify.py.

It's just that, by default, the result that contains the ISBN identifier is preferred – look in the base.py file:
Code:
#: If set to True, and this source returns multiple results for a query,
#: some of which have ISBNs and some of which do not, the results without
#: ISBNs will be ignored
prefer_results_with_isbn = True
You can easily override this, simply below among the other options in your plugin, e.g.

Code:
has_html_comments = True
can_get_multiple_covers = True
cached_cover_url_is_reliable = True
Add one more option:

Code:
prefer_results_with_isbn = False
And of course, disable the inline comment:

Code:
mi.set_identifier(‘isbn’, isbn)
BeckyEbook is offline   Reply With Quote