danielgwood / movie-analyser

Takes a list of films and collates some stats, such as popular genres, actors, directors, eras and ratings and displays it in a neat infographicy style.
6 stars 1 forks source link

Titles with question marks don't work with TMDb API #8

Open friedbunny opened 10 years ago

friedbunny commented 10 years ago

I've noticed in my own efforts with the TMDb API that titles with question marks just don't work; no results are returned.

Given the film "Getting Any? (1994)", the following happens...

Doesn't work with question mark: http://movie-analyser.com/fetch.php?title=Getting%20Any?%20(1994)&setId=fake

Works without question mark: http://movie-analyser.com/fetch.php?title=Getting%20Any%20(1994)&setId=fake

So, a hacky workaround is simply to strip question marks. Cheers!

danielgwood commented 10 years ago

Thanks for the tip!

Out of curiosity, were you also using the API class as provided by Jonas, or was this with direct API access?

friedbunny commented 10 years ago

I've been working with Node.js and Dan Zajdband's moviedb API wrapper, which has the same question mark problem. Indeed, via direct API access or even through TMDb's website search, question marks will kill it... should report the bug to them.