From MythTV Official Wiki
Revision as of 06:29, 5 April 2009 by YLee (Talk | contribs)

Jump to: navigation, search

Important.png Note: The correct title of this article is It appears incorrectly here due to technical restrictions. is a perl script intended to perform movie data lookups based on the database. It will replace the script used by older versions of MythTV, as the script is now in violation of the IMDb Terms of Use.

The best part about using 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 is freely editable by users and is available for use under open licensing terms.


If you're using MythTV 0.21-fixes, 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:

install -d tmdb/MythTV &&
pushd tmdb &&
svn cat > &&
echo "Successfully downloaded" &&
svn cat > MythTV/ &&
echo "Successfully downloaded" &&
chmod 755 ./ ./MythTV/ &&


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").

SUDO=sudo &&
if [ -d /usr/share/mythtv/mythvideo/scripts ]; then
elif [ -d /usr/local/share/mythtv/mythvideo/scripts ]; then
  echo "Unable to find script directory.  Please install manually."
$SUDO cp -Rv tmdb/* ${SCRIPTDIR} &&
if [ -e ${SCRIPTDIR}/ ]; then
  echo "Successfully installed script to:"
  echo "  ${SCRIPTDIR}"
  if [ -e ${SCRIPTDIR}/ ]; then
    $SUDO mv ${SCRIPTDIR}/{,-orig}
  $SUDO ln -s ${SCRIPTDIR}/ &&
  if [ -L ${SCRIPTDIR}/ ]; then
    echo "Successfully configured MythVideo and MythWeb to use"
    echo "Unable to configure MythVideo and MythWeb to use"
    echo "Please create a symlink called that refers to in"
    echo "  ${SCRIPTDIR}"
  echo "Unable to install script.  Please install manually."

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

rm -r tmdb