Skip to main content

A partial government shutdown is currently in effect, however operations remain normal at the FCC until further notice.  See the REC Government Shutdown Page.

Home

Mobile Main Menu

  • REC Home Page
  • FCC FM Filing Services
  • Low Power FM (LPFM)
  • REC Tools
  • Reference
  • FM/LPFM Filing Windows
  • How To Support REC
  • Contact REC

Breadcrumb

  • Home

Michi on YouTube

Other tools & info

  • Filing Window Tracking
  • Enforcement Actions
  • REC Advisory Letters
  • FAQ-Knowledge Base
  • U/D Ratio Calculator
  • Propagation Curves
  • Runway Slope/REC TOWAIR
  • Coordinate Conversion
  • PREMIS: Address Profile
  • Spare Call Sign List
  • FCC (commercial) filing fees
  • Class D FM stations in Alaska
  • ARRR: Pirate radio notices
  • Unlicensed broadcasting (part 15)
  • FMmap - broadcast atlas
  • Federal Register
  • Rate Card & Policies
  • REC system status
  • Server Status
  • REC Systems Changelog
  • Complete site index

Rivendell: perl script to import RSS feed into a Rivendell cart

This is a very simple perl script that will take the first item (MP3) off of an RSS podcast feed and import it to the defined cart.
  • First, you must build the cart in Rivendell using rdlibrary.
  • REC-FM uses this script called from cron to download and import the latest program from sources like Radio4All.
  • We do note that this script will not work when there are any special characters in the URL (plus signs to replace spaces are OK but when you start getting into anything else, it does not work). In those cases, you may have to write a different script that hard codes in the URL for the RSS feed under the $url variable and the cart number under the $cart variable.
  • Usage as shown: perl recrss.pl http://recfm.org/feed.xml 12345 which includes the feed URL and the cart number (12345) to import it into. Remember, if you are putting it into cron, please make sure you use the full path to the location of the perl file (i.e. /home/rd/recrss.pl )
  • In the code below, it is writing the MP3 to a temporary location in directory /home/rd/rss. You can change that to whatever directory you want to write that too. Make sure that the directory exists and the proper permissions are in place.
  • Happy downloading!

REC Essentials

  • FCC.TODAY
  • FCCdata.org
  • myLPFM Station Management
  • REC site map

The More You Know...

  • Unlicensed Broadcasting
  • Class D Stations for Alaska
  • Broadcasting in Japan
  • Our Jingles

Other REC sites

  • J1 Radio
  • REC Delmarva FM
  • Japan Earthquake Information
  • API for developers

But wait, there's more!

  • Join NFCB
  • Pacifica Network
  • MICHI-FM: slightly off the deep end
  • Report a bug with an REC system

Copyright © REC Networks/Riverton Radio Project Association - All Rights Reserved
EU cookie policy

Please show your support by using the Ko-Fi link at the bottom of the page. Thank you for supporting REC's efforts!