[mythtv-users] tmdb.pl issues

Yan Seiner yan at seiner.com
Sat Dec 12 15:29:12 UTC 2009


I'm trying to get tmbd.pl working. First off, I have to go through a 
proxy server, and I can't figure out how to do that.

I've tried the standard

export http_proxy="http://user:password@selene.seiner.lan:3128/"
selene:/var/lib/mythtv# 
/usr/local/share/mythtv/mythvideo/scripts/tmdb.pl -d -D The_Bucket_List# 
looking for movie id: 'The_Bucket_List'
# request: 
'http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=ttThe_Bucket_List&api_key=xxx'
Unable to contact themoviedb.org while retrieving movie data, stopped at 
/usr/local/share/mythtv/mythvideo/scripts/tmdb.pl line 123.

Second, even if I cut-and-paste the queries into my browser, 
themoviedb.org never, ever finds the movie.

I've been trying to find The Bucket List.

So, typing the movie name into the search winow on the themoveidb.org 
website brings up the correct movie. However, every conceivable 
combination of the search string cribbed from tmdb.pl either brings up 
no results or thousands...

The basic search string is this:

http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=ttThe_Bucket_List&api_key=xxx

The movie ID prepends a 'tt'; why, I have no idea.

It brings up no results:

<results for="ttThe_Bucket_List">
<opensearch:Query searchTerms="ttThe_Bucket_List"/>
<opensearch:totalResults>0</opensearch:totalResults>
−
<moviematches>
<movie>Your query didn't return any results.</movie>
</moviematches>
</results>

Same thing for almost any combination. If I try

http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=The+Bucket+List&api_key=xxx

I get *every* movie that begins with 'The'.

<results for="The">
<opensearch:Query searchTerms="The"/>
<opensearch:totalResults>23022</opensearch:totalResults>
−
<moviematches>
....

How do I get tmdb.pl to work?

-- 

   o__
   ,>/'_         o__
   (_)\(_)       ,>/'_          o__
A day may come  (_)\(_)         ,>/'_      o__
when the courage of men fails, (_)\(_)     ,>/'_ 
when we forsake our friends and break all (_)\(_)
bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!



More information about the mythtv-users mailing list