| View previous topic :: View next topic |
| Author |
Message |
hni
Joined: 07 Jun 2010 Posts: 26
|
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
Posted: Mon Sep 27, 2010 8:26 am Post subject: |
|
|
Can I do something in the config file, so it automatic gets the metadata from a file?
Regards,
Henrik |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Sep 27, 2010 12:22 pm Post subject: |
|
|
First thing to note is that this looks to be an ogg stream so it should be possible to do this from the source client. The second thing is which version is this, if it's the kh tree then I did disable the facility by default as certain clients were being stupid with ogg stream updates but you can enable it with a <mount> option
<allow-url-ogg-metadata>true</allow-url-ogg-metadata>
If this is 2.3.2 then that setting is not needed.
karl. |
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
Posted: Tue Sep 28, 2010 9:19 am Post subject: |
|
|
I have this PHP file I run every minute with a schudeled task on my server.
It gets the METADATA from the nowplaying.xml XML file...
And then send it to icecast. But no update.
<?php
// Sti til xml fil
$file = "http://www.skala.fm/xml/nowplaying.xml";
// Indlæs indholdet af filen til en streng
$file = utf8_encode(file_get_contents($file));
// Byg xml streng med indholdet af filen
$xml = simplexml_load_string($file);
// Gem værdier i nye variabler
$cur_artist = str_replace('NU: ', '', utf8_encode($xml->Current->titleName));
$cur_title = utf8_decode($xml->Current->artistName);
$next_artist = str_replace('OM LIDT: ', '', utf8_encode($xml->SongInfo->nextArtist));
$next_title = utf8_decode($xml->SongInfo->nextTitle);
// Udskriv noget
echo $cur_artist." - ".$cur_title." ";
?>
<META
HTTP-EQUIV="Refresh"
CONTENT="1; URL=http://source:XXX0@188.138.52.189:8000/admin/metadata.xsl?mount=/stream.ogg&mode=updinfo&song=<?php echo $cur_artist ?>+<?php echo $cur_title ?>+webstream+DK"> |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 28, 2010 1:12 pm Post subject: |
|
|
unfortunately this does not show us the response from the request nor the log messages. Maybe you should check those?
karl. |
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
Posted: Mon Oct 04, 2010 7:22 am Post subject: |
|
|
Hi Karl.
Where do I see this logs ???
These I will post them ASAP!
Regards,
Henrik |
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
|
| Back to top |
|
 |
hni
Joined: 07 Jun 2010 Posts: 26
|
Posted: Mon Oct 04, 2010 11:41 am Post subject: |
|
|
I found a solution for this myself...
Thanks for your help Karl..  |
|
| Back to top |
|
 |
|