Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

episodehunter/thetvdb

Repository files navigation

thetvdb Build Status codecov

Helper lib for thetvdb api

Install

$ npm install @episodehunter/thetvdb

Usage

const theTvDb = new TheTvDb(apikey)

API

constructor(apikey: string)

Creates an instance of TheTvDb

fetchShow(id: number): Promise<Show>

Fetch a show with given id. See the-tv-db-show.ts for the return type

fetchShowEpisodes(showId: number): Promise<Episode[]>

Fetch all episodes for a given show id. See TheTvDbShowEpisode in the-tv-db-show-episode.ts for the return type

Will throw an error if there is more than 1000 episodes.

fetchLastUpdateShowsList(time: number): Promise<Episode[]>

Return a list of shows that have been updated

time

Time in unix timestamp (sec)

fetchEpisodeImage(episodeId: number): Promise<Buffer>

fetchShowPoster(showId: number): Promise<Buffer>

fetchShowFanart(showId: number): Promise<Buffer>

License

MIT

About

👽Helper lib for the tv db api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published