View Single Post
Old 03-31-2021, 06:57 AM   #2
Boilerplate4U
Enthusiast
Boilerplate4U began at the beginning.
 
Boilerplate4U's Avatar
 
Posts: 39
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Found some that were not too old that gave me some further insight. This is my guess how the process is intended to work:
  1. Implement method identify() from class Source:
    Code:
    identify(self, log, result_queue, abort, title=None, authors=None,
                     identifiers={}, timeout=30)
  2. Use search parameters passed by identify() like title, authors and identifiers.
    Code:
    result = search (title, authors, identifiers)
  3. Possibly save cover url for future use by download_cover()
    Code:
    self.save_cover_url = result.cover_url
  4. Return result using result_queue.put(Metadata)
    Code:
    md = Metadata(result.title, result.authors)
    result_queue.put(md)

Any thoughts?
Boilerplate4U is offline   Reply With Quote