Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 05-08-2012, 12:50 PM   #1
Syx
Junior Member
Syx began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: Kindle 3
Question 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
Have you some ideas to show all result ?

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
Syx is offline   Reply With Quote
Old 05-08-2012, 01:03 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,120
Karma: 5101571
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.
kovidgoyal is online now   Reply With Quote
Old 05-08-2012, 01:40 PM   #3
Syx
Junior Member
Syx began at the beginning.
 
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 ?
Syx is offline   Reply With Quote
Old 05-09-2012, 12:56 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, it isn't.
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merged Developer Keystore PoP Kindle Developer's Corner 88 10-07-2013 02:42 PM
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


All times are GMT -4. The time now is 12:55 AM.


MobileRead.com is a privately owned, operated and funded community.