View Single Post
Old 05-20-2024, 06:00 AM   #1
dandman
Enthusiast
dandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watch
 
Posts: 29
Karma: 10545
Join Date: May 2024
Device: none
Caliber metadata plugin ignors source_relevance attribute

adding multiple books into the result_queue with different source_relevance has no effect on the UI displaying the book search results,

i have tried adding the levenshtein_distance result, (i actually use: fuzzywuzzy.QRatio) and in the example of 4 books the results entered into the source_relevance attributes are: 61, 58, 58, 58

i also tried converting them into sequential order: 1, 2, 3, 4

and it still has no effect on the UI.

i made sure the experience is the same for hebrew and english Caliber interface languages,

i searched the forum (there are only 2 mentions with source_relevance, non related to this issue),

i searched the source code and it looks like there is a preparation for ordering logic, but i can't find any code actually implementing it

https://github.com/kovidgoyal/calibr...es/base.py#L94
(maybe this is it ?)


it is not an important feature when i return multiple options (no one perfect match) and i want the user to choose from,

but it is an important feature when the user execute 10, 20, 50 ... books to get metadata and multiple books are returned - and Caliber should auto-select the first (with the highest source_relevance)

if anyone knows of a better option (like Caliber somehow signal the plugin this is a batch call and to return only 1 book, or better yet - to return multiple results for all the searched books)

thanks ahead
dandman is offline   Reply With Quote