Skip to Content
It is currently January 25th, 2020, 7:23 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: December 30th, 2006, 7:07 am 
Offline
Experienced User
Experienced User

Joined: January 15th, 2004, 5:58 pm
Posts: 289
Location: Belgium
Hello,

I have a shoutcast server that I add into the queue. Once played, I have the default title and not the titles that comes from the source. How can I map the titles from the source to SAM ?

Thanks a lot!

_________________
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2006, 7:08 am 
Offline
Experienced User
Experienced User

Joined: January 15th, 2004, 5:58 pm
Posts: 289
Location: Belgium
Ok got it : http://www.webcastersunited.com/forum/s ... d.php?t=60

_________________
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2007, 6:00 pm 
Offline
New User
New User

Joined: March 18th, 2003, 12:06 am
Posts: 21
Location: Washington D.C.
Can some one repost this info due to the website above is no longer

Thanks

Steve

_________________
Steve Singletary
DCCountry Productions - Washington D.C.
http://xerbwebradio.com
steves@dccountry.com


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2007, 6:12 pm 
Offline
Alumni
Alumni

Joined: December 20th, 2006, 9:23 pm
Posts: 12211
Location: Show Low, AZ
AT present time, SAM will not pull artist/title info from a stream and pass it through.

_________________
Andrew Cannon
(SVS) Spacial Volunteer Support

WE DANCE AS ONE: A Celebration In Groove
All That Is GOOD In Dance Music from the
70's, 80's, 90's and Now... plus some of the
best DJs from around the world.
http://www.wda1.com


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2007, 8:38 pm 
Offline
New User
New User

Joined: March 18th, 2003, 12:06 am
Posts: 21
Location: Washington D.C.
ok Thanks

_________________
Steve Singletary
DCCountry Productions - Washington D.C.
http://xerbwebradio.com
steves@dccountry.com


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 10th, 2007, 1:32 pm 
Offline
Super User
Super User

Joined: March 18th, 2007, 12:04 pm
Posts: 661
Location: Grand Rapids, Michigan
WDA1 wrote:
AT present time, SAM will not pull artist/title info from a stream and pass it through.

I do think this would be a great feature to add to same, and I will post it on the feature requests. I really could find this useful.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2007, 8:17 am 
Offline
Super User
Super User

Joined: June 27th, 2006, 11:27 am
Posts: 790
The link in this thread that is no longer working went to an article by Festerhead explaining how to extract artist-song info directly from a Shoutcast server via the 7.html page. This is what you would need to do in order to pass on the artist-song information from the stream you are relaying (assuming it uses Shoutcast), since SAM is not currently capable of doing so automatically. If you ask nicely, perhaps Festerhead would be kind enough to share the article with you or even reproduce it here. :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2007, 12:41 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
I'll see if I have a personal archive of the article.
The short version is:
* Grab 7.html
* Parse out the artist/title information

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2007, 10:20 am 
Offline
New User
New User

Joined: March 18th, 2006, 5:16 am
Posts: 22
Location: Asheville, NC
See if this Pal script will help you. I paid Spacail over $100 for it and the last I heard was they were going to put it in the PAL script area but I can not find it listed there. Since I took my station down and am not broadcasting at this time maybe someone else can put the script to good use.

{ PAL Script created on 4/10/2006 1:50:23 PM }
{==================================================}
WriteLn('Lets make this puppy run all the time');
PAL.Loop := True;
{ You will need to edit the next line to point to the URL you are pulling from.}
var html : String = WebToStr('http://stream url:port number/7.html');
var head : String = '<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>';
var tail : String = '</body></html>';
WriteLn(html);

Delete(html, Pos(head, html), Length(head));
WriteLn(html);

Delete(html, Pos(tail, html), Length(tail));
WriteLn(html);

var i : Integer = 0;
var j : Integer = 0;
while j < 6 do
begin
i := i + 1;
if (CharAt(html, i) = ',') then
begin
j := j + 1;
end;
end;

Delete(html, 1, i);
WriteLn(html);

var sepa : String = ' - ';
var artist : String = html;
var title : String = html;

Delete(artist, Pos(sepa, artist), Length(artist));
Delete(title, 1, Pos(sepa, title) + Length(sepa) - 1);

WriteLn(artist);
WriteLn(title);

var Song : TSongInfo;
Song := TSongInfo.Create;
Song['artist'] := artist;
Song['title'] := title;
Encoders.SongChange(Song);
Song.Free;
WriteLn('Waiting 10 Seconds so we are not constantly updating.');
PAL.WaitForTime(T['+00:00:10']); //Wait 5 secs


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2007, 4:50 pm 
Offline
Super User
Super User

Joined: June 27th, 2006, 11:27 am
Posts: 790
Wow. $100, huh? I hope Festerhead got at least $50 of it... :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2007, 5:27 pm 
Offline
New User
New User

Joined: March 18th, 2006, 5:16 am
Posts: 22
Location: Asheville, NC
Dunno.....He wrote the article but only gave bits and pieces of the PAL script not the whole script so I had them put it together. I have limited knowledge of PAL and very limited time which does not allow me to learn more about it.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2007, 6:43 pm 
Offline
Alumni
Alumni

Joined: September 3rd, 2004, 7:03 pm
Posts: 2137
Location: Nashville, TN
We appreciate you sharing that piece of code 8)

_________________
- Scott Giles
- Spacial Volunteer Support

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2007, 1:46 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
I'm still searching for the original article so you can get some of the theory about it.

Honestly, though, I think a complete PAL solution isn't the best way to approach this solution. Using a combination third party tool with more sophisticated parsing algorithms such as Perl or Java can read the DNAS pages and vomit out a string for a PAL to read and transmit to the encoders.

No, I didn't profit from the the article nor do I expect to since just about everything I've written throughout the years is freely available for anyone modify and do with as they see fit.

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: July 21st, 2009, 3:00 pm 
Offline
Senior User
Senior User

Joined: February 19th, 2009, 10:03 pm
Posts: 106
http://support.spacialaudio.com/forums/ ... 23&t=25981

That way of doing things fixes the title stream problem..


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 20 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group