Comments (1)
If you want the description in a different language pass a language parameter[0]. You need to find the language code for the language you want, tmdb uses ISO 639-1 codes and can be found on wikipedia here[1].
As with the picture. A image is not sent in return, just the link to the image to reduce the size of the response. To get the image you need to append (or add) the poster_path value (in your case: /2h00HrZs89SL3tXB4nbkiM7BKHs.jpg) to the image endpoint for themoviedb.
You can read more about this on the official docs[2] it, but in summary what you need to do is add append the response to https://image.tmdb.org/t/p/w500
where w500 is the width you want. In your example it would be https://image.tmdb.org/t/p/w500/2h00HrZs89SL3tXB4nbkiM7BKHs.jpg
.
Here is a list of the sizes available: https://www.themoviedb.org/talk/53c11d4ec3a3684cf4006400?language=en.
[0]
Here you want to change the value of id and language to what you want.
const moviedb = require('moviedb');
let tmdbLibrary = moviedb(apiKey);
let method = 'searchMovie';
let argument = { id: 329865, language: 'no'};
tmdbLibrary[method](argument, callback)
[1] https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
[2] https://www.themoviedb.org/talk/53c11d4ec3a3684cf4006400?language=en
from moviedb.
Related Issues (20)
- Please include TV Seasons -> Get Videos HOT 3
- Enable Travis CI tests HOT 2
- Query page numbers? HOT 1
- Promise version? HOT 12
- TypeError: this.requestToken is not a function HOT 1
- append_to_response HOT 2
- genreList is not a function HOT 3
- Find Person, beginning at Movie HOT 3
- Plans to adapt v4? HOT 3
- genreList doesn't work
- Make a npm script to automate the creation of dist versions
- Connection problems HOT 1
- [Future Request] Include genre names, not only IDs HOT 3
- sessions don't work. HOT 1
- TV changes for a specific ID? HOT 2
- Language settings don't work
- Add recommended movies? HOT 1
- Is this project still alive? HOT 5
- 2 low severity vulnerabilities HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moviedb.