Ticket #6421: tmdb.fix.diff

File tmdb.fix.diff, 628 bytes (added by robert.mcnamara@…, 17 years ago)

Fix.

  • mythvideo/mythvideo/scripts/tmdb.pl

     
    265265    if ($xml->{"opensearch:totalResults"} > 0) {
    266266        # now get the movie data via Movie.getInfo, Movie.imdbLookup does not
    267267        # provide us all the data
    268         my $tmdbid = $xml->{moviematches}->{movie}->{id};
     268        my $tmdbid = $xml->{moviematches}->{movie}->[0]->{id};
    269269
    270270        my ($rc, $response) =
    271271            TMDBAPIRequest('Movie.getInfo', {'id' => $tmdbid});