Skip to content

Enrichment script: Open Library (books) #36

Description

@DutchJaFO

Context

Split from #19. Implements IEnrichmentProvider for Open Library, covering book quotes. Depends on the shared enrichment scaffold (#19); does not depend on TMDB (#35), Wikidata (#37), or TVDB (#46).

API details

Property Value
Base URL https://openlibrary.org
Auth None required
Rate limit No hard limit for modest use
Endpoints /search.json?title=...&type=/type/work

What gets enriched

Field How
author Open Library author_name from the best-matching work
date first_publish_year from the best-matching work

Implementation checklist

  • Implement OpenLibraryEnrichmentProvider : IEnrichmentProvider in Quotinator.Enrichment
  • SupportedTypes: book
  • Search by source field title; apply enrichment only on a confident title match
  • Map author_name[] (array) to the single author string — use the first entry; flag if multiple authors exist
  • Only fill fields that are currently null or empty — never overwrite manually curated data
  • Cache API responses in scripts/cache/openlibrary/
  • Log skipped entries (no confident match) for manual follow-up
  • Respects the shared --dry-run, --no-fetch, and --provider flags from the scaffold

Notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions