tmdb-client
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1,2 +0,2 @@ | ||
var TmdbClient = require('./lib/tmbn-client'); | ||
var TmdbClient = require('./lib/tmdb-client'); | ||
module.exports = TmdbClient; |
{ | ||
"name": "tmdb-client", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "the movie database api for client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -92,10 +92,19 @@ # tmdb-client | ||
## next api | ||
## find season of tv | ||
```javascript | ||
var tvId = <number>; | ||
var seasonNumber = <number>; | ||
tmdb.findTvSeason(tvId, seasonNumber, function(error, season) {}); | ||
``` | ||
## find episode of season | ||
```javascript | ||
// next day comming with | ||
Tmdb.findTvSeason(tvId, function(error, items) {}); | ||
Tmdb.findTvEpisode(seasonId, function(error, items) {}); | ||
var tvId = <number>; | ||
var seasonNumber = <number>; | ||
var episodeNumber = <number>; | ||
tmdb.findTvSeason(tvId, seasonNumber, epNumber, function(error, episode) {}); | ||
``` | ||
## next api (pending) | ||
## development | ||
@@ -102,0 +111,0 @@ |
@@ -65,2 +65,26 @@ var chai = require('chai'); | ||
}); | ||
it('find tv season', function(done) { | ||
tmdbClient.findTvSeason(39351, 1, function(err, season) { | ||
expect(err).equal(null); | ||
var keys = ['air_date', 'episodes', 'name', 'overview', 'id', | ||
'poster_path', 'season_number' | ||
]; | ||
expect(season).include.keys(keys); | ||
done(); | ||
}); | ||
}); | ||
it('find tv episode', function(done) { | ||
tmdbClient.findTvEpisode(39351, 1, 1, function(err, season) { | ||
expect(err).equal(null); | ||
var keys = ['air_date', 'crew', 'episode_number', 'name', | ||
'overview', 'id', 'production_code', 'still_path', 'season_number' | ||
]; | ||
expect(season).include.keys(keys); | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15753
368
131
1