Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Via Tender: Add an adult filter to /3/search/movie

#46

Assigned to Tender discussion #142. As reported in Tender:

Hello,

My main use case for the TMDB API is, for example, given a file name like "BadBoys.iso", I want to find the right TMDB ID so I can fetch (primarily) the overview text and cover/backdrop art and display it in my HTPC application. I think this is probably a pretty common use case.

So I turn this filename heuristically into "Bad Boys" and submit it to the v3 movie search API.

At time of writing this returns six results and the first result is the correct one. This works most of the time so I can simply pick the first result.

Now, for the sake of argument let's assume I was actually searching for some other movie with the same title.

My strategy was going to be to display the results of the search in a list, then pick the right one from that list. The information that I have to pick the right one is one or more of:

backdrop_path
id
original_title
popularity
poster_path
release_date
title

Ideally I would have liked the movie overview text in the initial search response, but since it's not I thought I would display (again in a list) the poster and backdrop with the title and release year for each result. For the vast majority of cases this too would probably be enough to identify the right movie (assuming a poster and/or backdrop was available).

But then I found a problem with that, in that it looked like I was getting an "adult" movie back in that list, and I do not want to pull back any adult poster or backdrop art.

So what this leaves me with really, since I have no overview nor adult flag, is to identify the right movie I now maybe need to pull the movie info, director and/or cast list for each movie in the search results - meaning at least (1+n) queries to TMDB, maybe (1+2n) queries and so on.

Do you have any view on this? When you were designing the API did you envisage some other usage pattern that I should adopt? Do any other forum members have a better strategy for this? I am very keen to minimise the number of queries I send to TMDB (and I do cache everything locally once it's read the first time).

Thanks!

Reported by Travis Bell · January 6th, 2012 @ 09:13 AM

State: resolved
Milestone: Fight Club
Assigned to: Travis Bell Travis Bell

Activity

  1. Travis Bell
  2. Travis Bell
    Travis Bell
    • Milestone changed from Icebox to Fight Club
    • Milestone order changed from 29 to 0

    February 13th, 2012 @ 08:38 AM

  3. Travis Bell
  4. Travis Bell
    Travis Bell
    • State changed from new to started
    • Milestone order changed from 1 to 0

    February 22nd, 2012 @ 02:57 PM

  5. Travis Bell
    Travis Bell
    • State changed from started to resolved

    February 22nd, 2012 @ 04:33 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.