Popcorn SDK
SDK for Popcorn Time applications making it easier to retrieve movies / shows with meta data
Installation
$ npm install --save popcorn-sdk
Examples
const movies = await SDKconst movie = await SDK const shows = await SDKconst show = await SDK // One of the two, imdb is preferred // Or for slower internet connections you can partial load a showconst showBasic = await SDK // getShowMeta retrieves data from The Movie DB for better episode info and season / episode images// Basically runs getShowIds and getShowSeasonsMetaconst showWithMeta = await SDK // To only retrieve the ids for a showconst showWithIds = await SDK // To only retrieve the seasons metaconst showWithSeasons = await SDK // To retrieve recommendations for a certain showconst recommendations = await SDK
Adapters
You can add adapters handy for if you want to add attributes to movies / shows
/** * Get's called after the movies are fetched and before they are returned * * @param movies * @returns */ movies /** * Get's called after the movie is fetched and before they it is returned * * @param movie * @returns */ movie /** * Get's called after the shows are fetched and before they are returned * * @param shows * @returns */ shows /** * Get's called after the show is fetched and before they it is returned * * @param show * @returns */ show SDK
Movie output
// TODO
Show output
// TODO
License
This project is MIT licensed.
Collaboration
If you have questions or issues, please open an issue!