LinHES Forums http://forum.linhes.org/ |
|
Commflag to Cutlist http://forum.linhes.org/viewtopic.php?f=11&t=12100 |
Page 1 of 1 |
Author: | Yeraze [ Tue Oct 10, 2006 8:00 pm ] |
Post subject: | Commflag to Cutlist |
I know that the commflag (Which I run automatically for pretty much everything right now) is not automatically put into the CutList, and that you're supposed to load it in during watching. Is there any way to make this happen automatically? I've heard rumors about setting up some kind of "mythcommflag --gen-cutlist" option to setup as a User Job, but not much info on how to get it to work. Also, does anyone have any advice on how to get the cutlist editing functionality working with the Microsoft MCE Remote? |
Author: | Evander [ Fri Nov 03, 2006 5:54 pm ] |
Post subject: | |
I found this script on one of the many forums out there. It basically copies the COMMFLAG'ed stuff to the CUTLIST. I use it to run NUVEXPORT to generate commerical-free versions of the recorded programs. I don't remember who posted the original script, so my apologies for not giving credit where credit is due. Also, I'm still running R5A22, so I don't know if it breaks anything later. #!/bin/bash USERNAME=`sudo cat /etc/mythtv/mysql.txt | grep ^DBUserName | awk -F\= '{print $2}'` HOSTNAME=`sudo cat /etc/mythtv/mysql.txt | grep ^DBHostName | awk -F\= '{print $2}'` PASSWORD=`sudo cat /etc/mythtv/mysql.txt | grep ^DBPassword | awk -F\= '{print $2}'` DBNAME=`sudo cat /etc/mythtv/mysql.txt | grep ^DBName | awk -F\= '{print $2}'` echo Automatically commflagging echo "SELECT chanid, starttime from recorded where commflagged = '1' and cutlist is null;" | mysql -u $USERNAME -p$PASSWORD -h $HOS TNAME $DBNAME | grep -v chanid | sed s/[-:]//g | awk '{printf "/usr/bin/mythcommflag --chanid "$1" --starttime "$2$3" --gencutlist\n "}' | bash echo Commflagging done |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |