View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Commflag to Cutlist
PostPosted: Tue Oct 10, 2006 8:00 pm 
Offline
Joined: Thu May 11, 2006 7:42 pm
Posts: 34
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 5:54 pm 
Offline
Joined: Sat Feb 04, 2006 8:01 pm
Posts: 2
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu