{
  "schemaVersion": 1,
  "id": "audiohub-comics",
  "name": "Audiohub Comics",
  "version": "2.8.4",
  "description": "Comics from GetComics and the Internet Archive with download options, manga from Weeb Central read in the app's comic reader, plus your library's Comics Plus.",
  "icon": "https://archive.org/images/glogo.jpg",
  "provides": [
    "source"
  ],
  "contentType": "comic",
  "rateLimit": {
    "requests": 30,
    "perSeconds": 60
  },
  "matching": {
    "title": true,
    "author": false
  },
  "userConfig": {
    "note": "Optional: the Comics Plus link your library gives you (on its website, under eBooks / digital comics). You sign in there with your library card.",
    "fields": [
      {
        "key": "library_link",
        "label": "Your library's Comics Plus link",
        "placeholder": "https://…",
        "optional": true
      }
    ]
  },
  "webSearch": [
    {
      "name": "Comics Plus",
      "url": "{library_link}",
      "needs": "library_link",
      "inApp": true,
      "note": "Your library's comics — sign in with your card"
    }
  ],
  "adapters": {
    "source": {
      "request": {
        "method": "GET",
        "url": "https://audiohub-comics.booksources.workers.dev/api/search?q={TITLE}&source=all&limit=20",
        "timeout": 30000,
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "type": "json",
        "resultsPath": "results",
        "mapping": {
          "title": "title",
          "author": "author",
          "url": "source_url",
          "format": "format",
          "date": "date",
          "cover": "cover",
          "description": "description",
          "provider_name": "provider_name",
          "original_title": "original_title",
          "publisher": "publisher",
          "sizeBytes": "size_bytes",
          "access_type": "access_type",
          "reading_url": "reading_url",
          "external_url": "external_url",
          "issue_count": "issue_count",
          "publication_date": "publication_date",
          "issues_url": "issues_url",
          "reader": "reader",
          "reading_direction": "reading_direction",
          "download_available": "download_available",
          "download_links_url": "download_links_url"
        }
      }
    }
  }
}