[mythtv] [mythtv-commits] Ticket #3117: Rewrite Mythweb's Mythvideo Module

raptor jr raptorjr at hotmail.com
Sat Feb 24 11:12:52 UTC 2007


>Can you update and see if the new changes give any new output? if not, can 
>you edit the modules/video/imdb.php and set the line that is $DEBUG = FALSE 
>to TRUE and run the commands in a terminal window and toss the output here 
>for me to take a gander at?

Now i don't get that "error" message. Now i get No matches instead.
I dont know much about php, but i tried to see if anything went wrong in 
imdb.php.

This row gives me no matches:
$output = shell_exec($imdb.' -M tv=both "'.$title.'"');

But if i do this i get 3 matches:
$output = 
shell_exec('/usr/local/mythtv/share/mythtv/mythvideo/scripts/imdb.pl -M 
tv=both "Equilibrium"');

But they should be the same thing. I got the imdb.pl location from $imdb. 
And just made the string myself and tried. Dont have any clue why the first 
one gives me no matches and the other one gives med 3 matches.

Also, i left the other line just to try if it was possible to get the 
information from IMDB.
It seems that in line 89 of imdb.php you have  if ($posterjpg === FALSE) i 
guess it should be
if ($posterjpg == FALSE)?

Anyway, what i get is a "Video: Warning: Artwork: Download" and then the 
name of my video gets erased, but the IMDB number gets saved. Maybe this has 
something to do with error handling?

So then i tried to enter the right information by hand like i did above in 
the imdb.php file. And then i got the information about the movie, and the 
poster got saved, but it didn't get associated with my movie. So even if i 
got the poster in my poster directory, the videofile still shows Missing 
cover.

It seemd to me that there is some problem with shell_exec when you have 
variables in the argument. But if i enter the string by hand it works??

Hope this helps you.

/Stefan

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the mythtv-dev mailing list