- Added building to umd for unpkg
- Turned on strict typescript checks
- Add
baseURL
option so that folks can use their own omdb implementations, or the private Patreon instance - Added examples
- Fix bug where module was unusable in frontend code (Github #84, Gitlab #1)
- Migrated code to gitlab
- Added support for
Game
type from omdb (Fixes #81)
- Added the following fields:
All types:
ratings
(different thanrating
)awards
Movie
:
production
boxoffice
dvd
website
Episode
:
- Fix #73, #74 - where season was in some cases returned as '30'
- Documentation fixes
- Dependency bumps
- Fixes #63, #65 - Be more tolerant of bad data
- Removed callback api
- Created a client object so that applications can re-use options (Fixes #61)
- Added short plot summary (Fixes #55, #37)
- Episode now inherits from Movie, like everything else
- Much more data validation on responses
- Fix broken rating conversion
- Drop support for unsupported node versions
- Convert tests to typescript
- Remove utils module
- Remove
MovieOpts
fromMovieRequest
and have it be a separate arg toget
- Changed
SearchRequest.title
toSearchRequest.name
to unify interface - Specify types for
TVShow.totalseasons
,TVShow.start_year
andTVShow.end_year
- Fixes #54
- Fixes #51
- lots of modernization and enabling of tslint
This adds searching for movies and items from omdb.
imdb.search({title: 'foo'}, {apiKey: 'bar'}).then(console.log);
This also adds supports for timeouts
imdb.get('The Toxic Avenger', {apiKey: 'foo', timeout: 30}).then(console.log);
This is a breaking change
- Added support for passing in options to all
get
functions - Require an apiKey option for authentication to omdb
imdb.get('The Toxic Avenger', {apiKey: 'foo'}).then(function(data) { console.log(data); });
To see more about getting a key, see here
- Fixed broken date parsing (PR)
- Bug fixes
- Added promise API
imdb.get('The Toxic Avenger').then(function(data) { console.log(data); });
- Adds the ability to filter by year
imdb.getReq({name: 'James Bond', year: 2015}, function(err, data) { console.log(data) });
Version 2.0 is a breaking change. The APIs that I was using disappeared, and I switched over to using omdb. Most of the functions and the objects returned are similar, with some additional properties (and some removed).
The following properties have been removed from all movie/tv show/episode objects that are returned to callbacks.
stv
usascreens
ukscreens
The following properties have been renamed in order to not conflict with builtins or to better describe what the property means
Episode.number
->Episode.episode
Some properties have new types for convenience.
Episode.released
:string
->Date
Movie.released
:string
->Date
Movie.series
:number
->boolean
- The
episodes
call now just passes a list of episodes to the callback