'''tmdb.pl''' works perfectly in .20 as well. You can install it in .20 by performing the following ...

+

'''tmdb.pl''' is far superior to the various imdb.pl iterations and works perfectly in .20 as well, due to the quality coverart it accesses. You can install it in .20 by performing the following ... which is another way of performing the same tasks as above in a .20 environment.

As per above scripts, download the above tmdb.pl perl script from http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/tmdb.pl and copy it to /usr/share/mythtv/mythvideo/scripts on which ever system you run your mythfrontend on, and create a symbolic link from imdb.pl (mythfrontend executes this when searching IMDB).

As per above scripts, download the above tmdb.pl perl script from http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/tmdb.pl and copy it to /usr/share/mythtv/mythvideo/scripts on which ever system you run your mythfrontend on, and create a symbolic link from imdb.pl (mythfrontend executes this when searching IMDB).

Revision as of 12:42, 9 April 2009

tmdb.pl is a perl script intended to perform movie data lookups based on the themoviedb.org database. It will replace the imdb.pl script used by older versions of MythTV, as the imdb.pl script is now in violation of the IMDb Terms of Use.

The best part about using themoviedb.org data is that it is designed for applications such as MythTV, so it provides a lot of information that IMDb does not provide--such as multiple high-quality movie posters per movie, fan art, banners, and more. And, the data at themoviedb.org is freely editable by users and is available for use under open licensing terms.

Downloading tmdb.pl

If you're using MythTV 0.21-fixes, tmdb.pl does not ship with MythTV, so you will need to download the script (as a non-root user in a normal directory, such as the user's HOME directory). Do so by copying/pasting the following commands directly into a terminal window:

Installing tmdb.pl

The MythVideo scripts are typically installed in /usr/share/mythtv/mythvideo/scripts/ or /usr/local/share/mythtv/scripts/. The following code assumes they are installed in one of those two directories. If not, adjust the SCRIPTDIR as appropriate (and skip the if conditional that tries to set it automatically). To use the code below, copy/paste the following commands directly into the same terminal window you used for downloading the script, above. If your distribution does not use the sudo command to execute scripts as root, ensure you're using the root account (and in the directory you were in when you downloaded the script, above) and do not copy the first line ("SUDO=sudo").

When you're done with the temporary copy made when downloading the scripts, you may delete the tmdb directory:

rm -r tmdb

Using tmdb.pl in .20

tmdb.pl is far superior to the various imdb.pl iterations and works perfectly in .20 as well, due to the quality coverart it accesses. You can install it in .20 by performing the following ... which is another way of performing the same tasks as above in a .20 environment.

Ensure you have MythVideoCommon.pm accessible in one of your perl directories in order for the above script to work. When running the IMDB Search script, an error will popup if it doesn't exist identifying the directories where it thinks it should be located. Below is an example if where it can be stored.