The Movie Database Support

I'm querying the popular TV shows in my app. Since the default shows had some shows in Hindi language (which I didn't want), I used the language param hoping that it will only show TV Shows which are in English.

Here is my code:

 const params: PagedRequestParams = {};
  params.language = "en-US";

  const obj = await TMDB.tvPopular(params);
  return obj;

But the returned response still contained shows in Hindi language. Following is the response I got:

{
  page: 1,
  results: [
    {
      backdrop_path: '/jWXrQstj7p3Wl5MfYWY6IHqRpDb.jpg',
      first_air_date: '1952-12-26',
      genre_ids: [Array],
      id: 94722,
      name: 'Tagesschau',
      origin_country: [Array],
      original_language: 'de',
      original_name: 'Tagesschau',
      overview: 'German daily news program, the oldest still existing program on German television.',
      popularity: 4394.027,
      poster_path: '/7dFZJ2ZJJdcmkp05B9NWlqTJ5tq.jpg',
      vote_average: 7.5,
      vote_count: 127
    },
    {
      backdrop_path: '/t2rAdgjSh0WYbXzdOB5zTDqzdCI.jpg',
      first_air_date: '2022-11-02',
      genre_ids: [Array],
      id: 213713,
      name: 'Faltu',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'Faltu',
      overview: "What's in a name? Amidst the arid landscape of Rajasthan, a young woman with dreamy eyes struggles to prove her worth.",
      popularity: 3142.436,
      poster_path: '/lgyFuoXs7GvKJN0mNm7z7OMOFuZ.jpg',
      vote_average: 7,
      vote_count: 134
    },
    {
      backdrop_path: '/9TXcHOeCsM8W3ZKKIKjdYUsRSeq.jpg',
      first_air_date: '2017-07-17',
      genre_ids: [Array],
      id: 72879,
      name: 'Tomorrow is Ours',
      origin_country: [Array],
      original_language: 'fr',
      original_name: 'Demain nous appartient',
      overview: 'The story revolves around the people of Sète, France. Their lives are punctuated by family rivalries, romance and scenes from daily life, but also by plots involving police investigations, secrets and betrayals.',
      popularity: 3093.935,
      poster_path: '/3uU5uJzOX7xe7mn7YKpBM9oiEZO.jpg',
      vote_average: 6.7,
      vote_count: 31
    },
    {
      backdrop_path: '/3n2TjKw3HrwDqgVgcynvantOfS3.jpg',
      first_air_date: '2023-01-04',
      genre_ids: [Array],
      id: 215103,
      name: 'Teri Meri Doriyaann',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'तेरी मेरी डोरियाँ',
      overview: 'It’s hate at first sight for Sahiba and Angad! But destined to be together, their lives get intertwined by a marriage alliance, and a love-hate story ensues.',
      popularity: 2889.293,
      poster_path: '/4BHDmYiuSnNL3nqKIOzLJKYX4AN.jpg',
      vote_average: 7.2,
      vote_count: 106
    },
    {
      backdrop_path: '/zDUZKdCMESNbylWGybN4FMaUckG.jpg',
      first_air_date: '2022-11-28',
      genre_ids: [Array],
      id: 215315,
      name: 'Rabb Se Hai Dua',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'रब्ब से है दुआ',
      overview: 'Dua and her husband are a perfect married couple in the eyes of their family. However, Dua’s life turns upside down when her husband seeks her permission to marry another woman.',
      popularity: 2886.067,
      poster_path: '/6ikbefd7VeopbBuGgioYMNU5bQj.jpg',
      vote_average: 6.7,
      vote_count: 81
    },
    {
      backdrop_path: '/1Vj73YrMj4OLBppgZdWXoGZlsGI.jpg',
      first_air_date: '2022-12-05',
      genre_ids: [Array],
      id: 215902,
      name: 'Katha Ankahee',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'कथा अनकही',
      overview: "Katha, a single parent, is in need of funds for her son's medical treatment. She comes across Viaan, who offers help but his conditions put her in an awkward situation.",
      popularity: 2820.517,
      poster_path: '/uhXU0SMPMlemKGHmwbldM60qqmW.jpg',
      vote_average: 7.6,
      vote_count: 95
    },
    {
      backdrop_path: '/1Xm0WqoT0DjZm5JdG2V6YFabrOz.jpg',
      first_air_date: '2023-02-13',
      genre_ids: [Array],
      id: 215803,
      name: 'Batang Quiapo',
      origin_country: [Array],
      original_language: 'tl',
      original_name: 'Quiapo Kid',
      overview: 'A young man rises to be one of the biggest outlaws in the neighborhood while he navigates his way in life to survive in Quiapo. Hoping to earn the affection of his parents, his feat draws him closer to the truth about his identity.',
      popularity: 2821.846,
      poster_path: '/9McqS8mgMf5NJCAKZIY6J1oOl8y.jpg',
      vote_average: 7.3,
      vote_count: 87
    },
    {
      backdrop_path: '/jtAh65bX9Ydy2NFkwTN6V9WSzWb.jpg',
      first_air_date: '2023-02-07',
      genre_ids: [Array],
      id: 220525,
      name: 'Maitree',
      origin_country: [],
      original_language: 'hi',
      original_name: 'मैत्री',
      overview: '',
      popularity: 2497.757,
      poster_path: '/k57vsZ5Pl80WRR02ahgC3QLdhhL.jpg',
      vote_average: 7.8,
      vote_count: 35
    },
    {
      backdrop_path: '/rj3jBAZwPiOgkwAy1205MAgLahj.jpg',
      first_air_date: '2018-08-27',
      genre_ids: [Array],
      id: 81329,
      name: 'Chronicles of the Sun',
      origin_country: [Array],
      original_language: 'fr',
      original_name: 'Un si grand soleil',
      overview: '',
      popularity: 2620.464,
      poster_path: '/t6jVlbPMtZOJoAOfeoR4yQmnjXM.jpg',
      vote_average: 7.5,
      vote_count: 45
    },
    {
      backdrop_path: '/ottT2Yt0OfHiHp3PHJTLNVV8JPE.jpg',
      first_air_date: '1992-05-11',
      genre_ids: [Array],
      id: 13945,
      name: 'Gute Zeiten, schlechte Zeiten',
      origin_country: [Array],
      original_language: 'de',
      original_name: 'Gute Zeiten, schlechte Zeiten',
      overview: "Gute Zeiten, schlechte Zeiten is a long-running German television soap opera, first broadcast on RTL in 1992. The programme concerns the lives of a fictional neighborhood in Germany's capital city Berlin. Over the years the soap opera tends to have an overhaul of young people in their late teens and early twenties; targeting a young viewership.",
      popularity: 2446.332,
      poster_path: '/fNHBzjxsydcAssxXqb5IV2obDdU.jpg',
      vote_average: 6.9,
      vote_count: 17
    },
    {
      backdrop_path: '/yJEFbFax9fb8ePB0rK9UIQoXMG4.jpg',
      first_air_date: '2023-04-17',
      genre_ids: [Array],
      id: 222100,
      name: 'Meant To Be',
      origin_country: [Array],
      original_language: 'ko',
      original_name: 'Meant To Be',
      overview: 'The work depicts the lives of two women, Lee Hae In, and Kang Se Na, who fell into different fates as children.',
      popularity: 2409.39,
      poster_path: '/xdzSO56WueBMW45QHWemV3D6mzJ.jpg',
      vote_average: 7,
      vote_count: 93
    },
    {
      backdrop_path: '/yYNa1nqvNK94xZz3eKyfvZdAvPi.jpg',
      first_air_date: '2020-11-02',
      genre_ids: [Array],
      id: 112470,
      name: 'Here it all begins',
      origin_country: [Array],
      original_language: 'fr',
      original_name: 'Ici tout commence',
      overview: '',
      popularity: 2258.928,
      poster_path: '/60cqjI590JKXCAABqCStVmSBGET.jpg',
      vote_average: 7,
      vote_count: 26
    },
    {
      backdrop_path: '/oOce9hLMVFubjAJliau4kiSNPnW.jpg',
      first_air_date: '1990-09-13',
      genre_ids: [Array],
      id: 549,
      name: 'Law & Order',
      origin_country: [Array],
      original_language: 'en',
      original_name: 'Law & Order',
      overview: "In cases ripped from the headlines, police investigate serious and often deadly crimes, weighing the evidence and questioning the suspects until someone is taken into custody. The district attorney's office then builds a case to convict the perpetrator by proving the person guilty beyond a reasonable doubt. Working together, these expert teams navigate all sides of the complex criminal justice system to make New York a safer place.",
      popularity: 1374.562,
      poster_path: '/77OPlbsvX3pzoFbyfpcE3GXMCod.jpg',
      vote_average: 7.6,
      vote_count: 442
    },
    {
      backdrop_path: '/2N4LXvTkUwPRkbvyzdmzvtnCHgR.jpg',
      first_air_date: '2023-07-25',
      genre_ids: [],
      id: 225660,
      name: 'Pira-Pirasong Paraiso',
      origin_country: [Array],
      original_language: 'tl',
      original_name: 'Pira-Pirasong Paraiso',
      overview: 'A con artist takes on the job of pretending to be one of the long-lost sisters of a young and rich woman. As she navigates a world of cunning and lies, she learns about right and wrong, love and family, and spectacular truths about herself.',
      popularity: 2221.314,
      poster_path: '/gELcO56G9EsUj6LSjaDq8VvI8De.jpg',
      vote_average: 8.6,
      vote_count: 7
    },
    {
      backdrop_path: null,
      first_air_date: '2022-12-19',
      genre_ids: [],
      id: 227017,
      name: 'YHC: 2nd Generation',
      origin_country: [Array],
      original_language: 'en',
      original_name: 'YHC: 2nd Generation',
      overview: 'When destiny brings a reserved physiotherapist, Dr Nayantara and a famous rockstar Samrat together, will love blossom between them?',
      popularity: 2130.839,
      poster_path: null,
      vote_average: 6.6,
      vote_count: 5
    },
    {
      backdrop_path: '/5YfFibGB0Mjcl2RHUqztlPBCJp8.jpg',
      first_air_date: '2023-06-12',
      genre_ids: [Array],
      id: 226411,
      name: 'Mía es la venganza',
      origin_country: [Array],
      original_language: 'es',
      original_name: 'Mía es la venganza',
      overview: '',
      popularity: 2167.783,
      poster_path: '/bReUZMOPDSs4fpONIIQER6X4yNm.jpg',
      vote_average: 7.4,
      vote_count: 52
    },
    {
      backdrop_path: '/mAJ84W6I8I272Da87qplS2Dp9ST.jpg',
      first_air_date: '2023-01-23',
      genre_ids: [Array],
      id: 202250,
      name: 'Dirty Linen',
      origin_country: [Array],
      original_language: 'tl',
      original_name: 'Dirty Linen',
      overview: 'To exact vengeance, a young woman infiltrates the household of an influential family as a housemaid to expose their dirty secrets. However, love will get in the way of her revenge plot.',
      popularity: 2160.187,
      poster_path: '/aoAZgnmMzY9vVy9VWnO3U5PZENh.jpg',
      vote_average: 6.8,
      vote_count: 101
    },
    {
      backdrop_path: '/wJmcuxa0C4AERmA9mejxm9qRYDj.jpg',
      first_air_date: '2022-06-06',
      genre_ids: [Array],
      id: 203504,
      name: 'Aashiqana',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'आशिकाना',
      overview: 'A serial killer sparks the story of uptight Yashvardhan and feisty Chikki. Plagued by misunderstandings, how far do they have to go to nab the murderer?',
      popularity: 2084.45,
      poster_path: '/a4Z6Uohb6Ln5vcPvMUzwyn3WBjP.jpg',
      vote_average: 6.7,
      vote_count: 33
    },
    {
      backdrop_path: '/kdF7ZTktLHVVhAhI90uuzqlZqJI.jpg',
      first_air_date: '2023-06-06',
      genre_ids: [Array],
      id: 228093,
      name: 'Titlie',
      origin_country: [Array],
      original_language: 'hi',
      original_name: 'Titlie',
      overview: 'Obsessed by the notion of fairy tale love , Titlie marries her beau Garv . Soon , the picture - perfect romance turns abusive , forcing her to wrestle with reality .',
      popularity: 2088.313,
      poster_path: '/5kZi1LCFugNAeDCWOF3ornGNm2W.jpg',
      vote_average: 7.8,
      vote_count: 82
    },
    {
      backdrop_path: '/uwazmTlEGwuGuKK1OM1Tc1onXPn.jpg',
      first_air_date: '2023-06-12',
      genre_ids: [],
      id: 228459,
      name: 'Tierra de Esperanza',
      origin_country: [Array],
      original_language: 'es',
      original_name: 'Tierra de Esperanza',
      overview: '',
      popularity: 2076.61,
      poster_path: '/bUfbmaeHoWeqXC6rL8bSFwPfoNJ.jpg',
      vote_average: 7.7,
      vote_count: 80
    }
  ],
  total_pages: 7706,
  total_results: 154108
}

Am I missing something? How do I ensure that the shows are only in the language I specified?

2 replies (on page 1 of 1)

Jump to last post

@bingrteam said:
Popular TV Shows not respecting language parameter
I'm querying the popular TV shows in my app.
Since the default shows had some shows in Hindi language (which I didn't want),
I used the language param hoping that it will only show TV Shows which are in English.

Here is my code:

 const params: PagedRequestParams = {};
  params.language = "en-US";

  const obj = await TMDB.tvPopular(params);
  return obj;

But the returned response still contained shows in Hindi language. Following is the response I got:

{
  page: 1,
  results: [
    {
      backdrop_path: '/jWXrQstj7p3Wl5MfYWY6IHqRpDb.jpg',
  ],
  total_pages: 7706,
  total_results: 154108
}

Am I missing something? How do I ensure that the shows are only in the language I specified?

The &language= parameter specifies in which language you want to receive the response.
Overview Language, Title in your country, etc...
Try adding the parameter &with_original_language=
This filter for the language spoken in the movie.
Or &with_origin_country=

Hi @bingrteam,

@ticao2 is correct, language is simply a display filter, not a data/results filter. Your best 2 options are with_original_language and with_origin_country like he mentioned.

I do have an open ticket for adding a without_original_language filter that you can vote for/follow here.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

ലോഗിൻ