Tv

class asyncpow.apis.tv.Tv(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]

Initialize the Tv object with the base URL and API key.

async async_get_tv(id: int, lang: str = 'en', raw_response: bool | None = None) dict | TvDetailsModel[source]

Retrieves TV details by ID asynchronously.

Parameters:
  • id (int) – The ID of the TV show.

  • lang (str) – The language for the response. Default to β€œen”.

  • raw_response (bool) – Flag to return Json. Defaults to None.

Returns:

The raw response or TvDetailsModel object based on the raw_response flag.

Return type:

dict | TvDetailsModel

Examples

tv_details = await async_get_tv(12345, lang=”en”, raw_response=False)