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.
|