View Single Post
Old 04-17-2011, 02:01 PM   #21
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@ldolse: The identifiers that download_cover will get depends on which result was selected as the final result. If that result comes from another plugin, then the identifiers will not be present when download_cover is called.

In such a case, you have to run identify from within download_cover in your plugin. Look at any of the builtin pugins for an example.

There is a slight optimization in that identify results are merged, so if your plugins' result is recognized by the download system as being the same as the final result that is picked, its identifiers will be merged. And so the identifiers will be present when download_cover is called, but this will not always happen.
kovidgoyal is offline   Reply With Quote