05-08-2012, 12:50 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2012
Device: Kindle 3
|
merged results
Hello,
I try to develop my own plugin (it's quite functional ) But i don't understand the merge algorithm. i have activate only my metadata plugin my plugin found 7 results but only show 4 merged result: Code:
Found 7 results Downloading from zzz took 1.50500011444 --- Title : Blacksad : Blacksad, Les Dessous De L'enquête Author(s) : Juanjo Guarnido & Juan Díaz Canales Publisher : Imbroglio Series : Blacksad #1 Rating : 1.5 Published : 2001-11-01T00:00:00+00:00 Identifiers : isbn:220505290X, zzz:7494 --- Title : Blacksad, Tome HS1 : L'Histoire Des Aquarelles Author(s) : Juanjo Guarnido & Juan Díaz Canales Publisher : Dargaud Series : Blacksad #1 Rating : 1.5 Published : 2005-11-01T00:00:00+00:00 Identifiers : isbn:220505810X, zzz:51853 --- Title : Blacksad, Tome HS2 : L'Histoire Des Aquarelles - Tome 2 Author(s) : Juanjo Guarnido & Juan Díaz Canales Publisher : Dargaud Series : Blacksad #2 Rating : 1 Published : 2010-11-01T00:00:00+00:00 Identifiers : isbn:9782205066425, zzz:115950 --- Title : Blacksad, Tome 1 : Quelque Part Entre Les Ombres Author(s) : Juanjo Guarnido & Juan Díaz Canales & Régis Loisel Publisher : Dargaud Series : Blacksad #1 Rating : 2 Published : 2000-11-01T00:00:00+00:00 Identifiers : isbn:2205049658, zzz:15161 --- Title : Blacksad, Tome 2 : Arctic-Nation Author(s) : Juanjo Guarnido & Juan Díaz Canales Publisher : Dargaud Series : Blacksad #2 Rating : 2 Published : 2003-03-01T00:00:00+00:00 Identifiers : isbn:2205051997, zzz:24600 --- Title : Blacksad, Tome 3 : Âme Rouge Author(s) : Juanjo Guarnido & Juan Díaz Canales Publisher : Dargaud Series : Blacksad #3 Rating : 2 Published : 2005-11-01T00:00:00+00:00 Identifiers : isbn:220505564X, zzz:51823 --- Title : Blacksad, Tome 4 : L'Enfer, Le Silence Author(s) : Juanjo Guarnido & Juan Díaz Canales & Anne-Marie Ruiz & Ségolène Ferté Publisher : Dargaud Series : Blacksad #4 Rating : 2 Published : 2010-09-01T00:00:00+00:00 Identifiers : isbn:9782205063134, zzz:113281 Code:
Merging results from different sources and finding earliest publication dates from the xisbn service We have 4 merged results, merging took: 1.26 seconds another stupid question i try to insert print statement in my plugin for debugging but the console (calibre-debug.exe -g) don't show my print ?!? I use log.info instead but for small case is not easy to debug Thanks in advance and sorry for my poor English |
05-08-2012, 01:03 PM | #2 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Results that calibre thinks are identical are merged, even if they come from the same plugin. If you want to see the algorithm look at sources/identify.py.
You cannot use print statements to debug, as in newer calibre releases metadata plugins run in a worker process. If you want to use print plugins wrute so test code at the bottom of your plugin and run it with calibre-debug -e see the builtin plugins for examples. |
Advert | |
|
05-08-2012, 01:40 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2012
Device: Kindle 3
|
Thanks for your reply.
it's possible to interact in merge process without change the source code (I'm new on calibre and python dev) ? or tweaking result for don't merge ? |
05-09-2012, 12:56 PM | #4 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, it isn't.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merged Developer Keystore | PoP | Kindle Developer's Corner | 94 | 06-30-2016 11:08 AM |
merged terminal/launchpad/web server | lrizzo | Kindle Developer's Corner | 46 | 10-21-2011 05:51 PM |
Merge/Keep First Book - Yes/No Column Not Merged Correctly | nynaevelan | Library Management | 1 | 08-07-2011 09:52 AM |
PDF - ePub paragraphs are merged together | strnad | Conversion | 4 | 03-01-2011 08:57 AM |
Can ePubs be merged? | Elfwreck | ePub | 10 | 03-12-2010 07:08 PM |