'''tmdb.pl''' is a perl script intended to perform movie data lookups based on the [http://themoviedb.org/ 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.

−

This perl script is intended to perform movie data lookups based on the themoviedb.org website

+

+

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 =

= Downloading tmdb.pl =

−

If you're using MythTV 0.21-fixes, <code>tmdb.pl</code> 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):

+

If you're using MythTV 0.21-fixes (or below), <code>tmdb.pl</code> 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). If you have the Subversion (SVN) client installed on your system (<code>svn --version</code> should provide useful version output, rather than <code>bash: svn: command not found</code>), download the script by copying/pasting the following commands directly into a terminal window:

The MythVideo scripts are typically installed in <code>/usr/share/mythtv/mythvideo/scripts/</code> or <code>/usr/local/share/mythtv/scripts/</code>. 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).

+

The MythVideo scripts are typically installed in <code>/usr/share/mythtv/mythvideo/scripts/</code> or <code>/usr/local/share/mythtv/scripts/</code>. 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). If your distribution does not use the <code>sudo</code> command to execute scripts as <code>root</code>, ensure you're using the <code>root</code> account, and do not copy the first line ("<code>SUDO=sudo &&</code>").

+

+

To use the code below, copy/paste the following commands directly into the same terminal window you used for downloading the script, above. Before executing the commands, ensure you're in the directory you were in when you downloaded the script.

echo "Please execute these commands from the directory you were in when"

+

echo "you downloaded the tmdb.pl script."

+

fi

unset SCRIPTDIR

unset SCRIPTDIR

</pre>

</pre>

+

+

If you have additional MythTV client systems (multiple frontend systems or MythWeb hosts), you may simply copy the tmdb directory to the other systems and skip the download commands--simply run the install commands.

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

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

Line 40:

Line 87:

</pre>

</pre>

−

= Configuring MythVideo 0.21-fixes to use tmdb.pl =

+

[[Category:MythVideo_Grabber_Scripts]]

−

+

−

Change the MythVideo settings to use the new script, replacing <code>imdb.pl</code> with <code>tmdb.pl</code> and removing <code>tv=no;video=no</code> from the <code>Command to search for movie listings:</code>.

+

−

+

−

Using the default menu theme, you can find the settings in <code>Utilities/Setup|Setup|Media Settings|Videos Settings|General Settings</code> on page 4/7. After making the changes, the settings should look like:

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 (or below), 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). If you have the Subversion (SVN) client installed on your system (svn --version should provide useful version output, rather than bash: svn: command not found), download the script 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). If your distribution does not use the sudo command to execute scripts as root, ensure you're using the root account, and do not copy the first line ("SUDO=sudo &&").

To use the code below, copy/paste the following commands directly into the same terminal window you used for downloading the script, above. Before executing the commands, ensure you're in the directory you were in when you downloaded the script.

If you have additional MythTV client systems (multiple frontend systems or MythWeb hosts), you may simply copy the tmdb directory to the other systems and skip the download commands--simply run the install commands.

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