Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Metadata problem

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Sep 27, 2010 7:55 am    Post subject: Metadata problem Reply with quote

Hi guys.

I have some problems with my metadata and are really lost.

I have made a scheduled task to update my metadata that runs a URL with this:

http://xxx.xxx.xxx.xxx:8000/admin/metadata.xsl?mount=/stream.ogg&mode=updinfo&song=songdata

If I do it manually, I have to use admin login, because its a admin command and then it works.

But how can I send my URL with the metadata when it will have to use username and password?

I have tried with:
http://admin:password@xxx.xxx.xxx.xxx:8000/admin/metadata.xsl?mount=/stream.ogg&mode=updinfo&song=songdata

but this doesnt work eighter....

Can someone please help me with this??

I have a XML file with the Song and Artist as I can use.
I dont care how, as long as I can get it into Icecast. Smile
So other solutions are very welcome.

Regards,
Henrik
Back to top
View user's profile Send private message
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Sep 27, 2010 8:26 am    Post subject: Reply with quote

Can I do something in the config file, so it automatic gets the metadata from a file?

Regards,
Henrik
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Sep 27, 2010 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Sep 27, 2010 3:00 pm    Post subject: Reply with quote

Hi Karl.

Thanks for your fast answer.

This is ver. 2.3.2, so i should not be a problem?

http://188.138.52.189:8000/status.xsl

If I just do the update manually, it works fine.
I just tried with this:

http://188.138.52.189:8000/admin/metadata.xsl?mount=/stream.ogg&mode=updinfo&song=skala+fm+webstream+DK

But then I have to type the login manually, and if I do it with a scheduled task it has to login, and then it dont work.

What do I do if I have a .xml file where the metadata update live from the source?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Sep 27, 2010 3:36 pm    Post subject: Reply with quote

You can use the source username and password, the default username is source. The url layout for such things is

http://source:password@host:port/admin.....

karl
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Tue Sep 28, 2010 9:12 am    Post subject: Reply with quote

Hi Karl.

I have tried with this:

http://source:XXX@188.138.52.189:8000/admin/metadata.xsl?mount=/stream.ogg&mode=updinfo&song=skala+fm

But firefox as me to "accept" that I connect to the site with username... So maybe my schudeled task has the same problem?

Nothing happens...

But it works if I do it manually...
Back to top
View user's profile Send private message
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Tue Sep 28, 2010 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Sep 28, 2010 1:12 pm    Post subject: Reply with quote

unfortunately this does not show us the response from the request nor the log messages. Maybe you should check those?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Oct 04, 2010 7:22 am    Post subject: Reply with quote

Hi Karl.
Where do I see this logs ???
These I will post them ASAP! Smile
Regards,
Henrik
Back to top
View user's profile Send private message
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Oct 04, 2010 8:42 am    Post subject: Reply with quote

When you try to run this:

http://source:XXX@188.138.52.189:8000/admin/metadata.xsl?mount=/example.ogg&mode=updinfo&song=test+-+2

It ask if its okay to login to the site in my browser... Isn't this why it doesnt work for me in a schduled task?
Back to top
View user's profile Send private message
hni



Joined: 07 Jun 2010
Posts: 26

PostPosted: Mon Oct 04, 2010 11:41 am    Post subject: Reply with quote

I found a solution for this myself... Smile

Thanks for your help Karl.. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber