Difference between revisions of "Tmdb.pl"
(Start of page) |
(Cleanup/More info) |
||
Line 1: | Line 1: | ||
− | = | + | = 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): | |
<pre> | <pre> | ||
− | install -d MythTV && | + | install -d tmdb/MythTV && |
+ | pushd tmdb && | ||
svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/tmdb.pl > tmdb.pl && | svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/tmdb.pl > tmdb.pl && | ||
svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/MythTV/MythVideoCommon.pm > MythTV/MythVideoCommon.pm && | svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/MythTV/MythVideoCommon.pm > MythTV/MythVideoCommon.pm && | ||
− | chmod 755 ./tmdb.pl ./MythTV/MythVideoCommon.pm | + | chmod 755 ./tmdb.pl ./MythTV/MythVideoCommon.pm && |
+ | popd | ||
</pre> | </pre> | ||
− | + | = Installing tmdb.pl = | |
+ | |||
+ | 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 commands as appropriate. | ||
+ | |||
+ | <pre> | ||
+ | if [ -d /usr/share/mythtv/mythvideo/scripts ]; then | ||
+ | SCRIPTDIR=/usr/share/mythtv/mythvideo/scripts | ||
+ | elif [ -d /usr/local/share/mythtv/mythvideo/scripts ]; then | ||
+ | SCRIPTDIR=/usr/local/share/mythtv/mythvideo/scripts | ||
+ | fi | ||
+ | sudo cp -R tmdb/* ${SCRIPTDIR} && | ||
+ | unset SCRIPTDIR | ||
+ | </pre> | ||
+ | |||
+ | When you're done with the temporary copy made when downloading the scripts, you may delete the tmdb directory: | ||
+ | |||
+ | <pre> | ||
+ | rm -r tmdb | ||
+ | </pre> | ||
+ | |||
+ | = Configuring MythVideo 0.21-fixes to use tmdb.pl = | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <pre> | ||
+ | Command to search for movie listings: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -M | ||
+ | Command to search for movie posters: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -P | ||
+ | Command to extract data for movies: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -D | ||
+ | </pre> |
Revision as of 05:47, 25 February 2009
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):
install -d tmdb/MythTV && pushd tmdb && svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/tmdb.pl > tmdb.pl && svn cat http://svn.mythtv.org/svn/trunk/mythplugins/mythvideo/mythvideo/scripts/MythTV/MythVideoCommon.pm > MythTV/MythVideoCommon.pm && chmod 755 ./tmdb.pl ./MythTV/MythVideoCommon.pm && popd
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 commands as appropriate.
if [ -d /usr/share/mythtv/mythvideo/scripts ]; then SCRIPTDIR=/usr/share/mythtv/mythvideo/scripts elif [ -d /usr/local/share/mythtv/mythvideo/scripts ]; then SCRIPTDIR=/usr/local/share/mythtv/mythvideo/scripts fi sudo cp -R tmdb/* ${SCRIPTDIR} && unset SCRIPTDIR
When you're done with the temporary copy made when downloading the scripts, you may delete the tmdb directory:
rm -r tmdb
Configuring MythVideo 0.21-fixes to use tmdb.pl
Change the MythVideo settings to use the new script, replacing imdb.pl
with tmdb.pl
and removing tv=no;video=no
from the Command to search for movie listings:
.
Using the default menu theme, you can find the settings in Utilities/Setup|Setup|Media Settings|Videos Settings|General Settings
on page 4/7. After making the changes, the settings should look like:
Command to search for movie listings: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -M Command to search for movie posters: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -P Command to extract data for movies: /usr/share/mythtv/mythvideo/scripts/tmdb.pl -D