Larry,
might be a shell script exercise. globbing wildcards with wget etc don't
work.
have a play with this
#! /bin/bash
#download GNFM
#read episode number from last week
#episode=`cat /home/rd/shellscripts/gnfmepisode.txt`
episode=`cat /home/robert/gnfmepisode.txt`
echo $episode
#first get rid of last weeks
lastweeksdate=$(date --date='7days ago' +%Y%m%d)
echo $lastweeksdate
echo GNFM-$episode-$lastweeksdate.mp3
rm -f /home/rd/dropbox/GNFM-$episode-$lastweeksdate.mp3
#now set up this weeks
dateline=$(date +%Y%m%d)
echo $dateline
let newepisode=10#$episode+1
printf -v thisweeksepisode "%03d" $newepisode
echo 'this weeks episode ' $thisweeksepisode
#wget -O /home/rd/dropbox/GNFM-$thisweeksepisode-$dateline.mp3
http://path to downloadsite/GNFM-$thisweeksepisode-$dateline.mp3
# cart it
#rdimport --verbose --normalization-level=-13 --to-cart=xxxx
--delete-cuts --create-enddate-offset=5 FEATURE
/home/rd/dropbox/GNFM-$thisweeksepisode-$dateline.mp3
# update the episode data
echo $thisweeksepisode > /home/rd/shellscripts/gnfmepisode.txt
exit 0
This runs on the day as a cron job, you may have to tweak the dates if
you run it on a different date.
I use something like this here, all I had to do was sort the episode
numbering.
I have /home/rd/dropbox and /home/rd/shellscripts
modify to suit.
Happy Easter
regards
Robert
On 14/04/17 08:18, Larry wrote:
I need wildcards to download the files below. The first set of numbers
increment each week.
GNFM-087-20170423.MP3
GNFM-086-20170416.mp3
*/Larry Ewing, CBT/*
Chief Engineer
www.radiobygrace.com <http://www.radiobygrace.com/>
Office: 806.350.4444
Mobile:806.570.4352
cid:562103802@03122012-23A7
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
--
*Communication Consultants*
64 Warner Park Avenue
Laingholm
Auckland 0604
09 8176358
0221693124
06 650 6087
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev