Thanks for this Robert! It is a little above me right now, but I will
tuck this info away for future use.
As it stands right now, things aren't so bad. This station I am working
on went from manually downloading and importing the voice tracks for
over a half dozen shows throughout each week, to ONE. I was able to
automate the download/import process of all other shows with RDCatch.
-Alan
On 5/7/2014 3:05 PM, Robert Jeffares wrote:
I have never managed to get RD Catch to use wildcards, and it's picky
about some filenames
the solution is to run a shell script using cron on the same day each
week and the same time
as an example here is my download of a programme which is available
after 5pm Tuesday to Thursday
first the crontab line
35 18 * * 2-4 /home/rd/shellscripts/thamesTodayInParliament.sh
&>/dev/null
This is the script
#! /bin/bash
# first remove old files
rm /home/rd/dropbox/parliament*.mp3
#set the variables
dateline=$(date +%d-%m-%y)
monthline=$(date +%m)
year=$(date +%Y)
#download this is parliament
#items are posted to server before 5pm
wget -O /home/rd/dropbox/parliamentToday-$dateline.mp3
http://parliamenttoday.co.nz/wp-content/uploads/$year/$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/parliamentToday-$dateline.mp3
# if there is none the endate feature means nothing plays
exit 0
You can hack this to suit.
mmddyy-mmddyy
could be
startdate=$(date --date="+ 5 days" +%m%d%y)
endate=$(date --date="+ 11 days" +%m%d%y)
you need to work out what to put in to get the right numbers on the
day you download the file(s)
so you use
SHOWX_$startdate-$endate_hour1segment1.mp3
in the wget line
hope that helps
regards
Robert Jeffares
Big Valley Radio
Thames New Zealand
On 08/05/14 06:37, Alan Smith wrote:
I don't know what the linux equivalent is, but in the windows world
what I am looking for is either a ? or a * to be used in RDCatch. Can
those types of wildcards be used?
The longer, better explanation:
I am trying to automate as many ftp downloads as I possibly can. I
am on the last show. Unfortunately, the filenames used are:
SHOWX_mmddyy-mmddyy_hour1segment1.mp3
Where dd represents a broadcast date range, example: 050814-051414
Since I can't construct both of those dates in the RDCatch event, i
was hoping for something like this:
SHOWX_*-*_segment1.mp3
or
SHOWX_??????-??????_hour1segment1.mp3
Can it be done, or is this one that is going to have to be done
manually...
Thanks!
-Alan
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3469 / Virus Database: 3722/7453 - Release Date: 05/07/14
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev