Comments (6)
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.
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.
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.
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.
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.
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)
- Small changes from TMDb cause bug HOT 3
- Video class missing Official and PublishedAt HOT 2
- MediaType for episode changes to tv_episode
- Test API key HOT 4
- Error converting value {null} to type 'System.Double'. Path 'popularity'
- Person NullReferenceException for TaggedImage
- DiscoverMovie missing 'with_release_type' parameter HOT 1
- The SSL connection could not be established HOT 1
- GetTrendingMoviesAsync() calling a non-working URL HOT 9
- Updated TranslationData model in Nuget Package HOT 1
- MediaType error
- DiscoverMoviesAsync().IncludeWithAnyProviders() missing :'(
- Deserialization fails for Popular Persons data
- Add V4..
- Support native names in countries
- Security Vulnerability in Newtonsoft.Json 9.0.1 HOT 3
- RobiniaDocs API Explorer
- Update official Nuget with latest dependencies
- DiscoverTv.cs > WhereGenresExclude calls WhereGenresInclude
- some rudimentary tooling to deal with provider ids 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 tmdblib.