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
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev