{
  "schemaVersion": "1.0.0",
  "id": "public-knaben-ebooks",
  "name": "Knaben Ebooks",
  "version": "1.0.0",
  "description": "Ebook torrents found by Knaben (many sites at once).",
  "icon": "https://knaben.org/favicon.ico",
  "provides": [
    "source"
  ],
  "contentType": "ebook",
  "matching": {
    "algorithm": "fuzzy",
    "threshold": 0.6
  },
  "adapters": {
    "source": {
      "request": {
        "method": "GET",
        "url": "https://sources.booksources.workers.dev/knaben/ebooks?q={TITLE}",
        "timeout": 30000,
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "type": "json",
        "resultsPath": "hits",
        "mapping": {
          "title": "title",
          "magnetUrl": "magnetUrl",
          "infoHash": "hash",
          "sizeBytes": "bytes",
          "seeders": "seeders",
          "date": "date"
        }
      }
    }
  }
}