Thanks for all the suggestions. I will have have to investigate the very different approaches further.
Kind regards, Morten 2013/4/24 Max Goldstein, Operations Director <o...@wmfo.org> > The Rivendell-Spinitron Update code that my colleague Andy links to is > well-documented and recommended for anyone that uses both Rivendell and > Spinitron. I wouldn't consider the MetaData pusher ready for use by the > outside world. > > We display our now playing song, according to Spinitron, by including a > page <http://spinitron.com/public/newestsong.php?station=wmfo> that they > keep updated. It looks similar to what Robert provides except it only shows > one song. The big caveat is that it uses local, not absolute, links, which > can be fixed by this ugly but effective php script: > > <?php > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, " > http://spinitron.com/public/newestsong.php?station=wmfo"); > curl_setopt($ch, CURLOPT_HEADER, 0); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); > $nowPlaying = curl_exec($ch); > curl_close($ch); > $nowPlaying = > preg_replace("#(<\s*a\s+[^>]*href\s*=\s*[\"'])(?!http)([^\"'>]+)([\"'>]+)#", > '$1http://spinitron.com/$ > echo $nowPlaying > ?> > > The Rivendell browsing website is, though not quite relevant to the > thread, quite useful and comes recommended. It does not rely on Spinitron. > > Thanks, > > Max Goldstein > Operations Director > WMFO Medford > > > On Wed, Apr 24, 2013 at 12:06 PM, Robert Orr <orrrob...@gmail.com> wrote: > >> I've got an ugly script (no loops) that does this >> http://www.radiofree.ca/recentlyplayed.php >> >> Here's the top 20 lines of it. >> Let me know if you'd like the rest. >> >> while true >> do >> >> artist=`tr "%^" "\n" </home/robert/scripts/nn.temp|grep -a ZZ|sed >> s/ZZ//g| sed '/./,/^$/!d'` >> album=`tr "%^" "\n" </home/robert/scripts/nn.temp|grep -a XX|sed s/XX//g >> |sed '/./,/^$/!d'` >> song=`tr "%^" "\n" </home/robert/scripts/nn.temp|grep -a QQ|sed s/QQ//g >> |sed '/./,/^$/!d'` >> asin=`tr "%^" "\n" </home/robert/scripts/nn.temp|grep -a ZX|sed s/ZX//g >> |sed '/./,/^$/!d'` >> if [ "$artist" ] >> then >> >> cat /dev/null >/home/robert/scripts/nn.temp >> artist40=$artist39 >> artist39=$artist38 >> artist38=$artist37 >> artist37=$artist36 >> artist36=$artist35 >> artist35=$artist34 >> artist34=$artist33 >> artist33=$artist32 >> >> >> >> On Wed, Apr 24, 2013 at 9:01 AM, Andy Sayler <a...@wmfo.org> wrote: >> >>> We use Spinitron <http://spinitron.com/> to record both our Rivendell >>> and non-Rivendell plays. When we use Rivendell, either live or via >>> Automation, we have a plugin that automatically sends the Now >>> Playing info to Spinitron. Details are here: >>> https://github.com/WMFO/Rivendell-Spinitron-Update. We then >>> have our website and webstream display the "Now Playing" info from >>> Spinitron: https://github.com/WMFO/Metadata-Pusher (In Progress). >>> >>> We also have a basic website <http://rivendell.wmfo.org/> that >>> allows people to browse our Rivendell library. It probably would be pretty >>> easy to modify it to allow browsing of only recent playlsist as opposed to >>> the entire library: https://github.com/WMFO/Rivendell-Metadata. The >>> main reason we stick with Spinitron as opposed to doing something like that >>> is since we use both Rivendell and non-Rivendell sources, >>> and Spinitron provides a generic interface for aggregating all the plays, >>> not just Rivendell ones. >>> >>> Cheers, >>> Andy Sayler >>> WMFO >>> Tufts Freeform Radio >>> 91.5 FM Medford >>> >>> >>> On Wed, Apr 24, 2013 at 6:15 AM, Morten Krarup Nielsen < >>> morte...@gmail.com> wrote: >>> >>>> Hi! >>>> >>>> Has anyone set up a playlist on their website, so listeners can look up >>>> the name of the song they've just heard? >>>> >>>> If so, maybe the code could be posted here :-) >>>> >>>> Thank you very much! >>>> >>>> Kind regards, >>>> >>>> Morten >>>> >>>> _______________________________________________ >>>> Rivendell-dev mailing list >>>> Rivendell-dev@lists.rivendellaudio.org >>>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >>>> >>>> >>> >>> _______________________________________________ >>> Rivendell-dev mailing list >>> Rivendell-dev@lists.rivendellaudio.org >>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >>> >>> >> >> _______________________________________________ >> Rivendell-dev mailing list >> Rivendell-dev@lists.rivendellaudio.org >> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >> >> > > _______________________________________________ > Rivendell-dev mailing list > Rivendell-dev@lists.rivendellaudio.org > http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev > >
_______________________________________________ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev