On Thu, 2013-05-30 at 17:11 +0200, Hoggins! wrote: > Oh, indeed, I got itthe wrong way. > Any recipe that I could use to invalidate a cut after a certain period > of time ?
use rdimport set endate offset viz #! /bin/bash #download this is parliament dateline=$(date +%d%m%y) monthline=$(date +%y%m) wget -O /home/rd/dropbox/parliament_today_$dateline.mp3 http://img.scoop.co.nz/media/audio/$monthline/parliament_today_ $dateline.mp3 # cart it rdimport --verbose --normalization-level=-13 --to-cart=2719 --delete-cuts --create-enddate-offset=1 FEATURE /home/rd/dropbox/parliament_today_$dateline.mp3 # if there is none the endate feature means nothing plays that one runs tues-thurs each evening at 5 and plays at 10pm and the following 7am > > I'm importing audio to a cut with a RDCatch event, each week. If the > import fails(i.e. the source file is not present), I'd prefer that the > previously imported cut has been invalidated before, so that it won't > play twice. this one runs every friday here, deletes the safety copy held locally, and plays on Sunday. #! /bin/bash #download the week in parliament #first get rid of last weeks lastweeksdate=$(date --date='7days ago' +%d%m%y) rm -f /home/rd/dropbox/week_in_parliament_$lastweeksdate.mp3 #now set up this weeks dateline=$(date +%d%m%y) directory=$(date +%y%m) wget -O /home/rd/dropbox/week_in_parliament_$dateline.mp3 http://img.scoop.co.nz/media/audio/$directory/week_in_parliament_ $dateline.mp3 # cart it rdimport --verbose --normalization-level=-13 --to-cart=2710 --delete-cuts --create-enddate-offset=5 FEATURE /home/rd/dropbox/week_in_parliament_for_$dateline.mp3 > > Maybe there is another way to do this, such as an event that would allow > me to delete a cut. run the script as a cron when parliament is in recess and the reports dry up the feature shows up in the log as a red cart and RD skips through it. bloody brilliant! every feature here is acquired and date flagged like this using rdimport, oh there may be a couple run from inside RD looking for stuff contributors ftp into the dropbox with date offsets set up in the rdadmin>dropbox gui but you'll get the idea from the scripts. Our Parliament provides a series of audio reports foc which is a great service. We get speeches by our local MP on request. They will run around and get stuff. Great resource and hardly used. Hope the scripts help regards Robert > > Hoggins! > > Le 30/05/2013 15:04, Fred Gleason a écrit : > > Not quite. It's calculated from the date the cut expires, as set in the > > 'Air Date/Time control in RDLibrary->Edit->CutInfo/Record. > > _______________________________________________ > Rivendell-dev mailing list > [email protected] > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev _______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
