News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Script for adding Covers to MythTV recordings with no cover in Video list

Started by Viking, January 05, 2010, 10:39:25 AM

Previous topic - Next topic

Viking

On my system the Recording screenshot (cover) shown in MythTV recordings list is offen not added to the LinuxMCE Video list.

See here : http://svn.linuxmce.org/trac.cgi/ticket/436

I have written a script that will find the id3 files for thoose MythTV recordings and add the covers. UpdateMedia the redetects those and voila the cover is shown in the video list.

Run it once a day or something like that to get the covers added - something like this.
00 02 * * * nice -n 19 /usr/local/bin/CheckMythTVpictures.sh >>/var/log/pluto/CheckMythTVpictures.log 2>&1

Tested on my system, but no guaratees that i will work flawlessly on yours.


If you want to see what it does, add an echo to the following two lines and remove the grep :
      convert "${MPGFILE}.png" "$TMPJPG"
      eyeD3 --no-color --to-v2.3 --add-image="${TMPJPG}":FRONT_COVER "$ID3FILE" 2>&1 | egrep "Adding|Writing"


So taht it looks like this :
      echo convert "${MPGFILE}.png" "$TMPJPG"
      echo eyeD3 --no-color --to-v2.3 --add-image="${TMPJPG}":FRONT_COVER "$ID3FILE" 2>&1


Viking
My System :

[url="http://wiki.linuxmce.org/index.php/User:Viking"]http://wiki.linuxmce.org/index.php/User:Viking[/url]