omdbapi / OMDb-API

The Open Movie Database Bug Tracking
420 stars 21 forks source link

URL with t=Title works correctly, but URL with s=Title returns wrong film #139

Open gepree opened 5 years ago

gepree commented 5 years ago

This URL: https://www.omdbapi.com/?apikey=XXXXXXXX&t=The%20Man%20Behind%20the%20Microphone

returns the expected result:

{"Title":"The Man Behind the Microphone","Year":"2017","Rated":"N/A","Released":"N/A","Runtime":"86 min","Genre":"N/A","Director":"Claire Belhassine","Writer":"N/A","Actors":"N/A","Plot":"An amazing story of love and family, celebrity and music. A portrait of Hedi Jouini, the godfather of Tunisian music.","Language":"French","Country":"Tunisia, UK, France, USA","Awards":"N/A","Poster":"https://m.media-amazon.com/images/M/MV5BZGQ3NjdiMDUtMzVhOS00ZTU3LWI2MTQtOGUxNmQxMDA0Y2VkXkEyXkFqcGdeQXVyODA1NTQyNzM@._V1_SX300.jpg","Ratings":[{"Source":"Internet Movie Database","Value":"8.9/10"}],"Metascore":"N/A","imdbRating":"8.9","imdbVotes":"9","imdbID":"tt7889414","Type":"movie","DVD":"N/A","BoxOffice":"N/A","Production":"N/A","Website":"N/A","Response":"True"}

But this URL (with "t" changed to "s") https://www.omdbapi.com/?apikey=XXXXXXXX&s=The%20Man%20Behind%20the%20Microphone

returns some information about a different film:

{"Search":[{"Title":"Miracle Nutrition Radio: The Man Behind the Microphone","Year":"2008","imdbID":"tt1588368","Type":"movie","Poster":"N/A"}],"totalResults":"1","Response":"True"}

I thought the second URL should return results that include information about the 2017 film.

a-raccoon commented 5 years ago

Indeed. Verified weirdness.

http://www.omdbapi.com/?apikey=xxxxxxxx&t=The.Man.Behind.the.Microphone&y=2017

{"Title":"The Man Behind the Microphone","Year":"2017","Rated":"N/A", ...

http://www.omdbapi.com/?apikey=xxxxxxxx&s=The.Man.Behind.the.Microphone&y=2017

{"Response":"False","Error":"Movie not found!"}

zigazuzek commented 5 years ago

Hi, I've noticed something similar. When searching for a two letter movie (for example movie "Up") by using t=Title, the result is fine. But when using the s=Title, I am getting nothing.

PS.: It would be nice to have plots while using s=title as well 😊

a-raccoon commented 4 years ago

(bump)

I will also leave a sub-bug here, since I don't feel like creating a new issue for it. But {"Response":"False","Error":"Movie not found!"} should really include the query information (movie title, year) so the program knows what to do with the response in an asymmetric environment.