Code Monkey home page Code Monkey logo

Comments (1)

KevinMidboe avatar KevinMidboe commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.