RDCatch is coy about URL's with wildcards and can be difficult in other
situations, especially with changing episode numbers.
This is where you use a shell script and wget or in some cases rsync to
grab the latest episode.
wget ftp://ftp.srnprograms.com/shows/gaither/Commercial/HR*.mp3
will pull down all the episodes in the FTP directory and depending on
which one(s) you want you can select the latest.
By suitable use of wildcards you can narrow it down to just what you want
Using wget or rsync you can update just what you want to a local folder
and at the same time rename the file so RDCatch can import it
but wait
if you put an rdimport in the same script you get the job done in one hit.
There is a problem in that they leave last weeks programme in there as
well as this weeks but you know the date is 100116 and you know the
programme is always filed on Thursday
if you run your shell script on Thursday you create a variable
dateline=$(date -d "+ 2 days" +%m%d%y)
you can use that to download just the week programme you want to some
convenient folder /home/rd/dropbox
It looks like there are 5 segments and I assume you put each segment in
it's own cart
HR627-44_com01 100116.mp3
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com01\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
I use the normalization level to adjust to suit the income programme
some are very 'loud' and some are soft so I set to adjust the level to
suit.
The endate offset ensures you don't play last weeks. If you play twice
make sure it's long enough. --delete-cuts cleans out last weeks
script clears out last weeks files from dropbox
--------code---------
#! /bin/bash
#clean out last weeks files
rm /home/rd/dropbox/HR*.mp3
dateline=$(date -d "+ 2 days" +%m%d%y)
echo $dateline >GaitherHomecomingdownload.log 2>&1
wget -P /home/rd/dropbox
ftp://ftp.srnprograms.com/shows/gaither/Commercial/HR*$dateline.mp3
>>GaitherHomecomingdownload.log 2>&1
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com01\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com02\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com03\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com04\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
rdimport --verbose --normalization-level=-13 --to-cart=xxxxxx
--create-enddate-offset=5 --delete-cuts [GROUP]
/home/rd/dropbox/HR*com05\ $dateline.mp3 >>GaitherHomecomingdownload.log
2>&1
date >>GaitherHomecomingdownload.log
cat GaitherHomecomingdownload.log |mail -s "Gaither Homecoming
$dateline" [email protected]
exit 0
----end code---------
Matthew set this as a cron job and it tells you when it's done and if it
had problems.
The Lutheran hour is a bit more reluctant, it may be blocked out of the US
regards
Robert
On 30/09/16 09:57, Matthew Chambers wrote:
So I'm trying to get stuff switched to RDCatch rather then downloading
everything by hand and importing. I had several shows already set to
download in RDCatch. I just can't seem to get Gaither Homecoming to
download.
the url is
ftp://ftp.srnprograms.com/shows/gaither/Commercial/HR627-44_com01%20%m%d%y.mp3
where "627" is the show number which changes every week.
I tried putting an astrick "*" there but just get "Server Error:
Unspecified Error"
I haven't tried putting The Lutheran Hour in yet, but it has a similar
file name issue too
url http://media.lhm.org/envoy/mp3s/LH8406US_%b%d.mp3
where "8406" is the show number
Has anyone made this situation work in RDCatch?
Matthew A. Chambers, NR0Q
President, Wright County Outlaws ARC
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
--
*Big Valley Radio*
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