Hi Robert and Guy
I have devised 2 methods of downloading the latest program... I have
found 2 methods depending on the service I want.

1. Use crontab to use podget (available on most linux distros) to
connect to the RSS feed that a podcast has... once downloaded... it
copies it to a Rivendell dropbox that replaces the audio in a cart.
2. Another site didn't have an rss feed so I downloaded the
index.html.... used grep to search for an mp3 file name on the page...
compare the current.mp3 file name with the tail of a previously
downloaded filename.mp3 (from filelist.txt) ... if the same it would
exit... but if different it would download and then copy to a
Rivendell dropbox... replacing the cart audio... it works well for me.

Many Thanks
Geoff Barkman

On Thu, Sep 1, 2011 at 4:48 PM, Robert Butler <[email protected]> wrote:
> Hi, Guy.
>
> My first post here! <woot>
>
> We have a similar situation with Pacifica's Free Speech Radio News (FSRN).
> Their downloadable file is available at 4pm-ish CST, and we play it at 5pm
> CST.  They post their downloadable file with a different URL based upon the
> current day's date, which confounds RDCatch.  We wrote a shell script to do
> what we need.
>
>  N.B.  I have not plumbed the depths of RDCatch, so we may indeed have
> duplicated something that RDCatch can already do with aplomb, yet remains
> beyond our current grasp of it.
>
> Our shell script properly formats the download URL to include the current
> date, then downloads it with curl and RDImports it into the cart.
>
> The first thing the script does, is delete any existing cut in the FSRN
> cart.  Then it RDImports a cut of .08 seconds of silence into that cart.
> The point of first inserting the .08 seconds of silence into the cart is,
> should the FSRN download fail or prove invalid, the cart will play .08
> seconds of silence, then the log continues with automated programming.  We
> don't want to repeat old programs.  The script then fetches the FSRN file.
> If the download was successful, it verifies that it's an .mp3 file (instead
> of an HTML redirect or error page), checks the length for sanity, then
> performs an md5sum to make sure that's it's unique to the previous day's
> download.  If that succeeds, then it removes the cut of .08 seconds of
> silence from the cart and RDImports the downloaded FSRN file into it.  The
> script also redirect standard output and error to files, which are emailed
> to admins.  This script is run as a cron job.
>
> This is a bit of a kludge, but it works, with a fair economy of script.
>
> I'm very new to Rivendell and have been thrown feet first into the core
> systems of WHYR, 96.9 FM since our Operations Director took a month off.
>
> If there is a slicker way of accomplishing the above, I would love to read
> about it.
>
> Since this is my first post, I'd like to extend my sincere thanks to the
> developers and the Rivendell support communitay at large.  A truly amazing
> project!
>
> -Handsome Bob
>
> </woot>
>
> On Mon, Aug 15, 2011 at 3:17 PM, Guy Curtis <[email protected]>
> wrote:
>>
>> Is there a way for rivendell to check for newest program before playing
>> the cart and possibly put a different track in place if it is not?
>>
>> We have a syndicated program we play which on some days does not upload
>> until maybe 10 minutes after the time they are scheduled to play. I would
>> like to have some kind of check to ensure the current days program is in the
>> cart and if not run something to fill the air until the cart is loaded.
>> _______________________________________________
>> Rivendell-dev mailing list
>> [email protected]
>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>>
>
>
>
> --
> A human being should be able to change a diaper, plan an invasion, butcher a
> hog, conn a ship, design a building, write a sonnet, balance accounts, build
> a wall, set a bone, comfort the dying, take orders, give orders, cooperate,
> act alone, solve equations, analyze a new problem, pitch manure, program a
> computer, cook a tasty meal, fight efficiently, die gallantly.
> Specialization is for insects.
>
> -Robert A Heinlein
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to