lacymorrow / movie-trailer

📽 Fetch movie trailers: "Crash" ➔ http://path/to/trailer
https://www.npmjs.com/package/movie-trailer
MIT License
34 stars 8 forks source link

Fetching trailer by ID #8

Closed Tarek-23 closed 3 years ago

Tarek-23 commented 3 years ago

Is there any way to call the second API request directly to fetch the trailer with the TMDB movie id? Do you expect to provide support for this soon?

lacymorrow commented 3 years ago

Implemented in the latest version, 2.1.0: https://github.com/lacymorrow/movie-trailer/releases/latest

I've added the tmdbId option so you can pass the value yourself, like:

movieTrailer( null, { tmdbId: '161' }