4.0.3 • Published 4 years ago

@episodehunter/thetvdb v4.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Helper lib for thetvdb api

Install

$ npm install @episodehunter/thetvdb

Usage

const theTvDb = new TheTvDb(apikey)

API

constructor(apikey: string, options: Options)

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

fetchLatestShowEpisodes(showId: number, numberOfEpisodes: number): Promise<Episode[]>

Fetch the latest episodes. Will return somewhere between 0 and numberOfEpisodes + 99 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

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.0

4 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

3.0.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.7

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago