05-16-2024, 05:03 AM | #1 |
Enthusiast
Posts: 29
Karma: 10545
Join Date: May 2024
Device: none
|
Metadata plugun multiple results
i am trying to cause Caliber show multiple book options to the user (in case i cannot pinpoint the exact book)
i do that by adding several Metadata objects into the result_queue i also check the size of the queue before the end of the identify() function and it has multiple entries (i also print the results to the log) but the UI always show only one result, why is that ? can it be done (show more then 1 results) ? here is a sample of my code flow: PHP Code:
this is an example of the log i get after process of metadata retrieve is finished: Code:
The log from individual plugins is below ... ****************************** e-plugin (100, 4, 21) ****************************** Found 15 results Downloading from e-plugin took 7.139270305633545 ... ********** in Q before: 0 Q size: 0 ================= retrieve_book_details() ================= adding to Q[0]: ... added to Q[1] ********** in Q after: 1 ... ********** in Q before: 14 Q size: 14 ================= retrieve_book_details() ================= adding to Q[14]: ... added to Q[15] ********** in Q after: 15 ******************************************************************************** The identify phase took 7.19 seconds The longest time (7.139270) was taken by: e-plugin Merging results from different sources We have 1 merged results, merging took: 0.00 seconds |
05-16-2024, 05:26 AM | #2 |
Enthusiast
Posts: 29
Karma: 10545
Join Date: May 2024
Device: none
|
never mind i found the checkbox to allow more then one result from a single plugin,
Code:
Preferences -> Metadata Download -> keep more than one entry per source |
Advert | |
|
05-16-2024, 06:32 AM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
Quote:
|
|
05-16-2024, 06:07 PM | #4 |
Enthusiast
Posts: 29
Karma: 10545
Join Date: May 2024
Device: none
|
as far as i can tell, every record i added to the queue was displayed to the user,
there was just one strange behavior worth mentioning: after every call to url using PHP Code:
PHP Code:
|
Tags |
metadata, multi-book, plugin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata Search Results Overwrite Issue with Multiple Plugins | PBence | Library Management | 3 | 02-27-2024 01:16 PM |
Prevent Calibre from merging metadata results? | PlatypusInc | Library Management | 4 | 12-21-2023 11:11 AM |
Metadata download: No Amazon results even with mobi-asin present. | ownedbycats | Library Management | 11 | 04-27-2022 05:47 AM |
Avoiding metadata identify results merge | Ramblurr | Development | 1 | 06-05-2014 01:10 AM |
Select multiple items in "Check library results" window | Pepin33 | Library Management | 2 | 08-01-2012 12:10 PM |