Code Monkey home page Code Monkey logo

Comments (6)

Naliath avatar Naliath commented on August 13, 2024

when calling GetMovie (or anything else) use the overload that allows you to specify a ISO 639-1 language code. the returned result should be in the requested language.

from tmdblib.

patpowerman avatar patpowerman commented on August 13, 2024

Ok, thank you for the very fast answer.
But how do I know, which languages (other then english) are available?
(I try it with the MovieMethods.Translations, but this seems not to return all available languages for the movie descriptions).

from tmdblib.

Naliath avatar Naliath commented on August 13, 2024

That's strange, could you give me an example? Normally that should do it.

For example if you use 47964 as id (http://www.themoviedb.org/movie/47964-a-good-day-to-die-hard):
You get back 21 translation available and that is the number of languages available on the main TMDb page.

var translations = client.GetMovieTranslations(47964);

from tmdblib.

patpowerman avatar patpowerman commented on August 13, 2024

ups. It's a syntax problem in my VB.NET code. If I only use MovieMethods.Translations in TMDbClient.GetMovie, then I get back 24 translations for my example movie. As soon as I try to combine it with MovieMethods.Casts (like in your example), it returns nothing.
I have to check that. Everything OK with your library. Sorry!

from tmdblib.

Naliath avatar Naliath commented on August 13, 2024

Hehe, your welcome. It's not my lib but I do use it as well and made some changes to it in my own fork. If you have any more questions I'll be happy to help.

As Indicated in my previous example you could just call the GetMovieTranslations method if that's all your after.

The VB equivalent of | in c# is Or (bitwise-inclusive-or operator)

from tmdblib.

patpowerman avatar patpowerman commented on August 13, 2024

Perfect! You are right, with
....TMDbClient.GetMovie(76163, "de", Objects.Movies.MovieMethods.Translations Or Objects.Movies.MovieMethods.Casts)
it works in VB.NET as expected.

Thank you for your support!!

from tmdblib.

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.