Català Castellano
> Photos | Software | About
> Box | Intranet

Spanish MythVideo Script

This script carrys out to obtain information about films form MythTV media center's MythVideo plugin. As special spanish information is retrieved. Originals scripts weren't able to obtain film's information if their titles were in english. This script guarantees spanish titles films to be found and their information also, to be in spanish.

Our motivation to create this script has been to resolv that problem in our case. So we created that script in linux shell script. Truely that MythTv is multiplatform, but only Unix like systems could take profit of this.

Des fa no molt de temps, el servidor permet l'opció de treballar amb caràtules de mida major al que ens tenia acostumats. La nova versió de filmaffinity treballa correctament amb els nous formats, sempre que aquests estiguen disponibles. En cas contrari, descarrega la versió de mida reduída. Per al correcte ús de covers.sh en la seua versió 0.4, cal disposar del programari convert inclòs al paquet imagemagick

Since time, server allows to work with bigger posters as it uses to be. New filmaffinity version works correctly with new formats,

Source code

Name Version Platform Coments Download
filmaffinity.sh 0.1 Shell script filmaffinity.sh
filmaffinity.sh 0.2 Shell script filmaffinity.sh
filmaffinity.sh 0.3 Shell script filmaffinity.sh
filmaffinity.sh 0.4 Shell script filmaffinity.sh
covers.sh 0.1 Shell script covers.sh
covers.sh 0.4 Shell script covers.sh



This script does a pettition to http://www.filmaffinity.com web page. This web page has his content avaible in several languages, such as spanish. So it's able to search for a concret movie title and to show similar titles. Even more, it retreives films director, plot, year of making off, main characters, etc.

Another aspect that also is treated are movie covers. As the same time that can found title film, director is able to found movie cover url. Once found, should be MythVideo work to download it and to link it to that film. But, we observed that's not true. So we have developed another script to fill these gaps. Cover.sh. What does this script is to make a connection to database, anote non cover films, donwload it and to update MythTv database.




Installation

To install filmaffinity.sh we only must copy it to MythVide scripts directory. Normaly /usr/share/mythtv/mythvideo/scripts/ and configure MythTV to use it.

chmod +x filmaffinity.sh
cp filmaffinity.sh /usr/share/mythtv/mythvideo/scripts/

To point MythTV to use that script, we must go to Configuration -> Configuration -> Media Settings -> Video Configuration -> General Options.

First window ask us about film and covers path. This files must be created and had right rights. That's important for covers script..

In fourth configuration window we must write full path to film script, which tipically is /usr/shar/mythtv/mythvideo/scripts/filmaffinity.sh. So finally we'll had:

  • movie listings: /usr/shar/mythtv/mythvideo/scripts/filmaffinity.sh -M
  • movie posters: /usr/shar/mythtv/mythvideo/scripts/filmaffinity.sh -P
  • data for movies: /usr/shar/mythtv/mythvideo/scripts/filmaffinity.sh -D

NOTE: Other options such as tv=no;video=no must be deleted. If you don't do that this script will thought that this is film's title.

The other script doesn't needs to be installed, only we must run it. Nevertheless, asks for database administrative user password to carry out those tasks and an small configuration. We first must make it executable and then modify it by modifying variable POSTERS to our system value. It must be said that user who run that script must have write rights over foler where covers are stored.




Thanks to Francesc Font to show that installation process was not well explained.

Shotokan - shotokan.roig@gmail.com