1.1.3 • Published 3 years ago

tmdb-tv v1.1.3

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

tmdb-tv

TMDB (The Movie Database) API wrapper for TV Shows only.

Install

$ npm install tmdb-tv

Import

let TMDB = require('tmdb-tv')("YOUR_TMDB_API_KEY");

Example

var results = await TMDB.Search("Lucifer");
//  results returns an array of shows.
console.log(results);

var Show = TMDB.Show(results[0].id);
var show = await Show.GetDetails();
console.log(show);
show.seasons.forEach(async(season_no) => {
    var Season = Show.Season(season_no);
    var season = await Season.GetDetails();
    console.log(season);
    season.episodes.forEach(async(episode_no) => {
        var Episode = Season.Episode(episode_no);
        var episode = await Episode.GetDetails();
        console.log(episode);
    });
});

Basic usage of each method can be found in the test document "test/app.js"

Useful Information

For examples on what each object is returned, check out tmdb api documentation here: (https://developers.themoviedb.org/3/tv)

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago