eztv
EZTV API module for Node.js
Install
npm install eztv
Usage
; const firstShow ...shows = await eztv;console; const show = await eztv;console; const showWithEpisodes = await eztv;console;
See here for a clonable and runnable example repo
getShow(options)
Returns a promise containing a list of shows from eztv
options
: An optional options object. Currently supports:
query
: Show title to search for. If this option is ommited, all shows are returned.
showId
: The show ID.
error
: Error object or null.results
: Array of episodes.
Each result is an object:
getShowEpisodes(showId)
Returns a promise containing a list of episodes for a given show.
showId
: The show ID, which is a number. an example show id is 376
showName
: The show name, which is a string. an example show name is 'sherlock'
error
: Error object or null.results
: Array of episodes.
Returns:
Each episode is an object:
Development
git clone https://github.com/moesalih/node-eztvcd node-eztvyarnyarn test