Ticket #6421: tmdb.pl.patch
File tmdb.pl.patch, 725 bytes (added by , 15 years ago) |
---|
-
mythvideo/mythvideo/scripts/tmdb.pl
265 265 if ($xml->{"opensearch:totalResults"} > 0) { 266 266 # now get the movie data via Movie.getInfo, Movie.imdbLookup does not 267 267 # provide us all the data 268 my $tmdbid = $xml->{moviematches}->{movie}->{id}; 268 my $tmdbid = ref $xml->{moviematches}->{movie} eq 'ARRAY' 269 ? $xml->{moviematches}{movie}[0]{id} 270 : $xml->{moviematches}{movie}{id}; 269 271 270 272 my ($rc, $response) = 271 273 TMDBAPIRequest('Movie.getInfo', {'id' => $tmdbid});