This project has moved and is read-only. For the latest updates, please go here.

Getting all backdrop

Jun 2, 2013 at 10:51 PM
Hi i wonder how can i get all the backdrop images from TMDb using WatTmdb.dll? I managed to get only one backdrop, but i will like to get all from specific movie.

This is part of what i have so far:
Dim config As TmdbConfiguration = api.GetConfiguration()
Dim searchId As TmdbMovie = api.GetMovieInfo(4513, "en") 'Id 4513 is from 30 Days of Night
Dim baseUrl As String = config.images.base_url
Dim strBackdrop As String = String.Empty
Dim BackdropSize As String = "w1280"
strBackdrop = baseUrl & BackdropSize & searchId.backdrop_path
Jun 2, 2013 at 11:13 PM
upsss, i missed that there is another thread asking for the same. I'm sorry for that.

I will try what is in that thread and let you know later in this one.

Jun 3, 2013 at 1:04 AM
Ok, i have try to get the backdrops but there seems to be a problem with the images with no language. The "GetMovieImages" will not get the images with no language even if i set it as Nothing.

This is what i used:
        Dim searchBackdrop As TmdbMovieImages = api.GetMovieImages(movieId, Nothing)
        For Each element In searchBackdrop.backdrops
            If (element.iso_639_1 = Nothing) Or (element.iso_639_1 = "en") Then MessageBox.Show(element.file_path)
Any help will be appreciated,
Sep 28, 2013 at 3:28 PM
I modified the AddParameter overload with the following code:

public RequestBuilder AddParameter(string name, string value)
        if (name == PARAMETER_LANGUAGE && value == "ALL")
            Request.AddParameter(name, "");
            return this;
        else // Old code path
            if (name == PARAMETER_LANGUAGE && string.IsNullOrEmpty(value))
                value = DefaultLanguage;

            if (string.IsNullOrEmpty(value)) return this;
            value = value.EscapeString();

            Request.AddParameter(name, value);
            return this;

And when I call the GetMovieImages I use "ALL" as language. Quick and dirty fix but it works, I get all posters and backdrops