Author Topic: Script for adding Covers to MythTV recordings with no cover in Video list  (Read 438 times)

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
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.
Code: [Select]
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 :
Code: [Select]
      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 :
Code: [Select]
      echo convert "${MPGFILE}.png" "$TMPJPG"
      echo eyeD3 --no-color --to-v2.3 --add-image="${TMPJPG}":FRONT_COVER "$ID3FILE" 2>&1

Viking