From 760bf3fc0abf4311843d97fc1c157597b2126011 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 20 May 2008 21:13:25 +0000 Subject: [PATCH] changed about renamed sync-radiobouqets help in config.php.dist --- ABOUT | 29 +++++++++++++++++++ DreamboxBouqets.php | 2 +- config.php.dist | 16 ++++++---- ...radiobouqets.php => sync-radio-bouqets.php | 0 4 files changed, 41 insertions(+), 6 deletions(-) rename sync-radiobouqets.php => sync-radio-bouqets.php (100%) diff --git a/ABOUT b/ABOUT index 34bad9c..b67c4c0 100644 --- a/ABOUT +++ b/ABOUT @@ -1 +1,30 @@ enigma2 radio stations to mediatomb converter + by Christian Weiske + +These scripts take radio bouqets defined on your Dreambox and import them as +external links onto your MediaTomb UPnP server - so you can hear satellite +radio with the kitchen radio. + +Prerequisites + You need the Services_MediaTomb php library from my pear channel server. + Get it via: + pear channel-discover zustellzentrum.cweiske.de + pear install zustellzentrum/Services_MediaTomb-alpha + +How to use it + Copy config.php.dist to config.php and adjust it to your needs + + +Provided scripts + copy-radio-bouqets.php + Dead simple script that deletes all stations on mediatomb and then + copies all bouqets and stations freshly onto the upnp server. + + sync-radio-bouqets.php + Sophisticated script that tries to change as little as possible. + If a station already exists on mediatomb, its title gets updated. + Good for cron jobs to make sure the EPG info is current. + + +How to setup stream transcoding: + http://cweiske.de/tagebuch/Dreambox%20and%20noxon%20iRadio.htm diff --git a/DreamboxBouqets.php b/DreamboxBouqets.php index 2e420d5..e035b6d 100644 --- a/DreamboxBouqets.php +++ b/DreamboxBouqets.php @@ -3,6 +3,7 @@ * Fetches bouqet information from the dreambox * * @author Christian Weiske +* @license LGPL http://www.gnu.org/copyleft/lesser.html */ class DreamboxBouqets { @@ -19,7 +20,6 @@ class DreamboxBouqets $streamhost = 'http://' . $ip . ':8001'; $url_getServices = $host . "/web/getservices?sRef="; $url_stream_playlist = $host . '/web/stream.m3u?ref='; - //1%3A7%3A2%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3A(type%20%3D%3D%202)%20FROM%20BOUQUET%20%22userbouquet.info_______________radio_.radio%22%20ORDER%20BY%20bouquet $url_bouqet_epg = $host . '/web/epgnow?bRef='; $url_stream = $streamhost . '/'; diff --git a/config.php.dist b/config.php.dist index e5036fc..7778480 100644 --- a/config.php.dist +++ b/config.php.dist @@ -1,18 +1,25 @@ array( - 'host' => 'dreambox' + //hostname or IP of the dreambox + 'host' => 'FIXME' ), 'mediatomb' => array( - 'host' => 'dojo', + //hostname of IP of the mediatomb server + 'host' => 'FIXME', 'port' => 49152, - 'user' => 'cweiske', - 'pass' => 'mediatomb', + //mediatomb web UI username and password + 'user' => 'FIXME', + 'pass' => 'FIXME', + //the mediatomb UPnP directory you want your radio stations listed 'radiodir' => 'Radio', + //The bouqet whose stations you want to have in the root radio dir 'rootBouqet' => 'Favourites', + //mime type of the external links (helpful for transcoding) 'mimetype' => 'audio/x-satellite-mpeg2' ), + //array of radio station name replacements 'namefixes' => array( 'DKULTUR' => 'D-Kultur', 'DLF' => 'Deutschlandfunk', @@ -22,7 +29,6 @@ $GLOBALS['enigtombConfig'] = array( 'MDR JUMP' => 'Jump', 'MDR SPUTNIK' => 'Sputnik', 'MDR1 SACHSEN' => 'mdr1 Radio Sachsen', - 'P-COUNTRY' => 'Premiere Country', 'VIBRATION' => 'Vibration', ) ); diff --git a/sync-radiobouqets.php b/sync-radio-bouqets.php similarity index 100% rename from sync-radiobouqets.php rename to sync-radio-bouqets.php -- 2.30.2