Subject: | Fw: TMDB perl wrapper search bug |
Date: | Sun, 16 Jun 2013 11:50:41 -0500 |
To: | bug-tmdb [...] rt.cpan.org |
From: | Mithun Ayachit <m0t0rbr3th [...] gmail.com> |
Forwarded message:
Show quoted text
> From: Warren Hatch <WarrenHatch@msn.com>
> To: mithun@cpan.org
> Date: Sunday, June 16, 2013 11:28:24 AM
> Subject: TMDB perl wrapper search bug
>
> Mithun,
>
> Thank you very much for writing your wonderful Perl wrapper for The MovieDB API.
>
> The recent change to API v3 seems to have broken Search Movie when supplying a Year in the query string. For example, when I pass “Life of Pi (2012)” to your wrapper, the search now fails. Until recently it worked.
>
> I believe a single line change to Search.pm in the Search Movies subroutine will fix the problem. After $string is trimmed, change the line $string .= " $year" if $year; -to- $string .= "&year=$year" if $year;
>
> Kind regards and again thanks for the great program,
>
> Warren Hatch
>
>