Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@episodehunter/thetvdb

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@episodehunter/thetvdb

Helper lib for thetvdb api

  • 4.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 26 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc