{
  "library": "libscorpiox-scorpioplayer-metadata-client",
  "name": "scorpiox-scorpioplayer-metadata-client",
  "version": "1.0.0",
  "abi": {
    "scorpiox_io": 1
  },
  "services": [
    "TMDb",
    "OMDb",
    "iTunes Search"
  ],
  "keys": "REQUIRED with no default (ERR_NO_KEY) \u2014 no key is shipped in this repo (SPEC section 1)",
  "exports": [
    {
      "name": "sp_fake_calls",
      "group": "fake",
      "signature": "int sp_fake_calls(const char *method, const char *url)"
    },
    {
      "name": "sp_fake_fail",
      "group": "fake",
      "signature": "int sp_fake_fail(const char *method, const char *url, const char *transport_error)"
    },
    {
      "name": "sp_fake_reset",
      "group": "fake",
      "signature": "void sp_fake_reset(void)"
    },
    {
      "name": "sp_fake_set",
      "group": "fake",
      "signature": "int sp_fake_set(const char *method, const char *url, long http_code, const char *body)"
    },
    {
      "name": "spmeta_itunes_lookup",
      "group": "itunes",
      "signature": "int spmeta_itunes_lookup(long long id)"
    },
    {
      "name": "spmeta_itunes_search",
      "group": "itunes",
      "signature": "int spmeta_itunes_search(const char *term, const char *media, int limit, const char *country)"
    },
    {
      "name": "spmeta_last_error",
      "group": "diagnostics",
      "signature": "const char *spmeta_last_error(void)"
    },
    {
      "name": "spmeta_last_http_code",
      "group": "diagnostics",
      "signature": "long spmeta_last_http_code(void)"
    },
    {
      "name": "spmeta_last_url",
      "group": "diagnostics",
      "signature": "const char *spmeta_last_url(void)"
    },
    {
      "name": "spmeta_omdb_by_imdb",
      "group": "omdb",
      "signature": "int spmeta_omdb_by_imdb(const char *imdb_id)"
    },
    {
      "name": "spmeta_omdb_by_title",
      "group": "omdb",
      "signature": "int spmeta_omdb_by_title(const char *title)"
    },
    {
      "name": "spmeta_omdb_field",
      "group": "omdb",
      "signature": "const char *spmeta_omdb_field(const char *key)"
    },
    {
      "name": "spmeta_omdb_runtime_minutes",
      "group": "omdb",
      "signature": "int spmeta_omdb_runtime_minutes(int *out)"
    },
    {
      "name": "spmeta_omdb_season",
      "group": "omdb",
      "signature": "int spmeta_omdb_season(const char *imdb_id, int season)"
    },
    {
      "name": "spmeta_omdb_set_key",
      "group": "config",
      "signature": "int spmeta_omdb_set_key(const char *api_key)"
    },
    {
      "name": "spmeta_omdb_votes",
      "group": "omdb",
      "signature": "int spmeta_omdb_votes(unsigned long long *out)"
    },
    {
      "name": "spmeta_page",
      "group": "results",
      "signature": "int spmeta_page(void)"
    },
    {
      "name": "spmeta_result_backdrop_path",
      "group": "results",
      "signature": "const char *spmeta_result_backdrop_path(int i)"
    },
    {
      "name": "spmeta_result_count",
      "group": "results",
      "signature": "int spmeta_result_count(void)"
    },
    {
      "name": "spmeta_result_feed_url",
      "group": "results",
      "signature": "const char *spmeta_result_feed_url(int i)"
    },
    {
      "name": "spmeta_result_id",
      "group": "results",
      "signature": "const char *spmeta_result_id(int i)"
    },
    {
      "name": "spmeta_result_imdb_id",
      "group": "results",
      "signature": "const char *spmeta_result_imdb_id(int i)"
    },
    {
      "name": "spmeta_result_json",
      "group": "results",
      "signature": "const char *spmeta_result_json(void)"
    },
    {
      "name": "spmeta_result_media_type",
      "group": "results",
      "signature": "const char *spmeta_result_media_type(int i)"
    },
    {
      "name": "spmeta_result_original_title",
      "group": "results",
      "signature": "const char *spmeta_result_original_title(int i)"
    },
    {
      "name": "spmeta_result_overview",
      "group": "results",
      "signature": "const char *spmeta_result_overview(int i)"
    },
    {
      "name": "spmeta_result_popularity_permille",
      "group": "results",
      "signature": "int spmeta_result_popularity_permille(int i)"
    },
    {
      "name": "spmeta_result_poster_path",
      "group": "results",
      "signature": "const char *spmeta_result_poster_path(int i)"
    },
    {
      "name": "spmeta_result_rating_permille",
      "group": "results",
      "signature": "int spmeta_result_rating_permille(int i)"
    },
    {
      "name": "spmeta_result_source",
      "group": "results",
      "signature": "const char *spmeta_result_source(int i)"
    },
    {
      "name": "spmeta_result_title",
      "group": "results",
      "signature": "const char *spmeta_result_title(int i)"
    },
    {
      "name": "spmeta_result_year",
      "group": "results",
      "signature": "int spmeta_result_year(int i)"
    },
    {
      "name": "spmeta_set_io",
      "group": "transport",
      "signature": "void spmeta_set_io(const scorpiox_io *io)"
    },
    {
      "name": "spmeta_set_language",
      "group": "config",
      "signature": "int spmeta_set_language(const char *lang)"
    },
    {
      "name": "spmeta_set_timeout_ms",
      "group": "config",
      "signature": "int spmeta_set_timeout_ms(int ms)"
    },
    {
      "name": "spmeta_shutdown",
      "group": "lifecycle",
      "signature": "void spmeta_shutdown(void)"
    },
    {
      "name": "spmeta_tmdb_discover_movie",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_discover_movie(int page, int year)"
    },
    {
      "name": "spmeta_tmdb_discover_tv",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_discover_tv(int page, int include_adult, int year)"
    },
    {
      "name": "spmeta_tmdb_external_ids",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_external_ids(int tmdb_id, int is_tv)"
    },
    {
      "name": "spmeta_tmdb_find_by_imdb",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_find_by_imdb(const char *imdb_id)"
    },
    {
      "name": "spmeta_tmdb_image_url",
      "group": "tmdb",
      "signature": "const char *spmeta_tmdb_image_url(const char *path, const char *size)"
    },
    {
      "name": "spmeta_tmdb_search_multi",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_search_multi(const char *query, int page)"
    },
    {
      "name": "spmeta_tmdb_set_bearer",
      "group": "config",
      "signature": "int spmeta_tmdb_set_bearer(const char *v4_token)"
    },
    {
      "name": "spmeta_tmdb_set_key",
      "group": "config",
      "signature": "int spmeta_tmdb_set_key(const char *api_key)"
    },
    {
      "name": "spmeta_tmdb_tv_airing_today",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_tv_airing_today(int page)"
    },
    {
      "name": "spmeta_tmdb_tv_detail",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_tv_detail(int tmdb_id)"
    },
    {
      "name": "spmeta_tmdb_tv_on_the_air",
      "group": "tmdb",
      "signature": "int spmeta_tmdb_tv_on_the_air(int page)"
    },
    {
      "name": "spmeta_total_pages",
      "group": "results",
      "signature": "int spmeta_total_pages(void)"
    },
    {
      "name": "spmeta_total_results",
      "group": "results",
      "signature": "int spmeta_total_results(void)"
    },
    {
      "name": "spmeta_tv_last_episode_number",
      "group": "tv_detail",
      "signature": "int spmeta_tv_last_episode_number(void)"
    },
    {
      "name": "spmeta_tv_last_episode_season",
      "group": "tv_detail",
      "signature": "int spmeta_tv_last_episode_season(void)"
    },
    {
      "name": "spmeta_tv_season_count",
      "group": "tv_detail",
      "signature": "int spmeta_tv_season_count(void)"
    },
    {
      "name": "spmeta_tv_season_number",
      "group": "tv_detail",
      "signature": "int spmeta_tv_season_number(int i)"
    },
    {
      "name": "spmeta_tv_season_poster",
      "group": "tv_detail",
      "signature": "const char *spmeta_tv_season_poster(int i)"
    },
    {
      "name": "spmeta_use_curl",
      "group": "transport",
      "signature": "int spmeta_use_curl(void)"
    },
    {
      "name": "spmeta_use_fake",
      "group": "transport",
      "signature": "int spmeta_use_fake(void)"
    },
    {
      "name": "spmeta_warning",
      "group": "diagnostics",
      "signature": "const char *spmeta_warning(int i)"
    },
    {
      "name": "spmeta_warning_count",
      "group": "diagnostics",
      "signature": "int spmeta_warning_count(void)"
    }
  ]
}
