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
