Skip to Content
It is currently February 18th, 2018, 4:12 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: November 12th, 2004, 7:39 pm 
Offline
Senior User
Senior User

Joined: March 24th, 2004, 9:00 am
Posts: 213
Location: The Land Of The Legal Music
line feeds? :oops:

_________________
Best Regards
- Always Remember, An Audio Cd Is 1411Kbps... ;)
My Audio Quality Kicks 977-Hitz Off The Air 8)


Top
 Profile  
Reply with quote  
PostPosted: November 12th, 2004, 7:48 pm 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
Sorry not with you. You want to know how to remove them from the message or what is a line feed?

If it's the the first. Look at the post above your last one.

If
It's
the
Second
then
these
are
linefeeds
:D


Top
 Profile  
Reply with quote  
PostPosted: November 12th, 2004, 7:49 pm 
Offline
Senior User
Senior User

Joined: March 24th, 2004, 9:00 am
Posts: 213
Location: The Land Of The Legal Music
ooooo now i understand (yea slowmo here :twisted: lol) thx for explaining :D

_________________
Best Regards
- Always Remember, An Audio Cd Is 1411Kbps... ;)
My Audio Quality Kicks 977-Hitz Off The Air 8)


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2004, 3:36 pm 
Offline
Junior User
Junior User

Joined: September 14th, 2004, 5:17 pm
Posts: 65
I hope you can read my english i'm comming from the netherlands and use now for a view days Sam and compliments to all programmers and the people behind these site :)

I have a problem whit the script amd hope that you can help me?

Sam2 have no problems but if i want to use the script than i see the next message

Is there no request i see the next message:
Waiting 5 Seconds before checking if it is a Request
Checking if song has been Requested......
Song is not a Request
Done....
Waiting for next song to start

But is it a request i see the next message:

New song started
Waiting 5 Seconds before checking if it is a Request
Checking if song has been Requested......
Song is a Request
ERROR: Query error:Unknown column 'msg' in 'field list'
ERROR: SQL: SELECT name, msg FROM requestlist WHERE id = 126
Done....
Waiting for next song to start

I use this code:





Code:

{
  Insert Request Dedication information into encoded stream : script by Xgeek (aka Xgeek)
  $Id: Inject Request Dedication.pal,v 0.05 2004/11/12

  * This script would not have been possible without the help from FesterHead. Thank You!!!

  What this PAL does:
    * On song change checks to see if the song was requested, and if it was:
    * If no dedication information it will inject ~Requested~ in the title stream after Artist - Title
    * If dedication information it will inject ~Requested by <Name> : Who had this to say:- <Message>~ in the title stream after Artist - Title


  What is configurable:
    * Nothing


  PAL built to run continuously:
    * Switch to a desktop with the 'PAL Scripts' window visible

    * Click '+' (Add new PAL script)

    * Check the 'Automatically start script' box

    * Click the folder icon and navigate to this script

    * Click 'OK'

    * Highlight PAL and click 'Start selected PAL script' (VCR type play button)

    * Save settings by clicking the 'File' menu item and selecting 'Save Configuration'
}

PAL.Loop := True;

WriteLn('New song started');

WriteLn('Waiting 5 Seconds before checking if it is a Request');
// Wait a few seconds just in case this song is a Jingle. If it is, and it is under 10 seconds the script will still get the correct info for the song after.
PAL.WaitForTime(T['+00:00:05']); //Wait 5 secs
PAL.LockExecution;

// Instantiate a Song Info object
var Song : TSongInfo;
Song := TSongInfo.Create;

WriteLn('Checking if song has been Requested......');
if ((ActivePlayer.GetSongInfo['requestID']) = 0) then WriteLn('Song is not a Request');

// Check if current song has a request ID
if ((ActivePlayer.GetSongInfo['requestID']) > 0) then
  Begin
      WriteLn('Song is a Request');
      var reqInfo : TDataSet = Query('SELECT name, msg FROM requestlist WHERE id = ' + ActivePlayer.GetSongInfo['requestID'], [], true);
      var Requested_by : String = reqInfo['name'];
      var Dedication_Message : String = reqInfo['msg'];
      reqInfo.Free;
     
      If (Requested_by = '') then Requested_by := 'Anonymous';
      If (Dedication_Message = '') then Dedication_Message := 'Nothing...';

      If ((Requested_by = 'Anonymous') and (Dedication_Message = 'Nothing...')) then
         Begin
           WriteLn('Song is a Request without Dedication');
           WriteLn(Requested_by); // This should aways echo Anonymous
           WriteLn(Dedication_Message); // This should aways echo Nothing...
           Song['artist'] := ActivePlayer.GetSongInfo['artist'] + ' - ' + ActivePlayer.GetSongInfo['title'];
           Song['title'] := '~Requested~';
           Encoders.SongChange(Song);
         End
     else
         Begin
           WriteLn('Song is a Request with a Dedication');
           WriteLn(Requested_by);
           WriteLn(Dedication_Message);
           Song['artist'] := ActivePlayer.GetSongInfo['artist'] + ' - ' + ActivePlayer.GetSongInfo['title'];
           Song['title'] := '~Requested by ' + Requested_by + ' : Who had this to say:- ' + Dedication_Message + '~';
           Encoders.SongChange(Song);
        End;
  End;
 
PAL.UnlockExecution;
WriteLn('Done....');

// Release data structures
Song.Free;

WriteLn('Waiting for next song to start');
PAL.WaitForPlayCount(1); {Wait for 1 songs to play}
{
  **************
  * Change log *
  **************

  Revision 0.05  2004/11/12 xgeek
  }



What do i wrong?

I use Sam2 and don't use PHP.

Next question is it only possible if i want to buy sam3 to pay whit creditcard?

Tnx for sharing all help and information.

Greetzz

Ringo


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2004, 4:46 pm 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
There was a database change between Sam2 and Sam3.

In Sam2 it is 'message' and Sam3 'msg'. Just edit the pal and change 'msg' to 'message'.

Cheers


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2004, 9:06 pm 
Offline
Senior User
Senior User

Joined: March 24th, 2004, 9:00 am
Posts: 213
Location: The Land Of The Legal Music
::::::::::URGENT NEWS:::::
i just found out the pass of the server often is showed on the end of the request info!!!!!!!!!1
this means listeners can see ur pass 99% of the requests
fuck fuck fuck how to fix??

_________________
Best Regards
- Always Remember, An Audio Cd Is 1411Kbps... ;)
My Audio Quality Kicks 977-Hitz Off The Air 8)


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 2:57 am 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
:shock: Are you on drugs LOL I have been using to for the last 2 days and have not seen that. This is the snippet of code that displays the request.

All it does is assign 'Artist' & 'Title' to 'Artist'.
Code:
Song['artist'] := ActivePlayer.GetSongInfo['artist'] + ' - ' + ActivePlayer.GetSongInfo['title'];


Then it assigns 'Title' our 2 new strings. Nowhere does it access your password. Requested_by & Dedication_Message are the 2 varibles that hold the info that are assigned to 'Title'

Code:
           Song['title'] := '~Requested by ' + Requested_by + ' : Who had this to say:- ' + Dedication_Message + '~';
           Encoders.SongChange(Song);


Can you be a bit more specific on what you did/saw. Remember that I echo out all varibles in the debug window.

Are you sure you are not looking at the stuff winamp adds when it sees a linefeed?

Cheers


Last edited by xgeek on November 15th, 2004, 3:59 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 3:18 am 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
I also use an IRC bot to spit this info out in our irc channel. I have looked at my logs and out of 50 requests it did not spit out a password.
Note: Some had only requested by info, some had only a dedication message, and some had both. And never a password was outputted!!

Example
Code:
now playing: Korn - Falling Away From Me
now playing: Black Eyed Peas - Let's Get Retarded - ~Requested by Xgeek : Who had this to say:- What the **** Is this?~
now playing: Pulp - My Legendary Girlfriend
now playing: Sometreat - Lost In Vegas
now playing: Sir Douglas Quintet - She's About A Mover
now playing: Cypress Hill - Case Closed
now playing: Felix - Don't You Want Me
now playing: Tom Jones - Green Green Grass Of Home
now playing: Donna Allen - Joy + Pain
now playing: Phil Collins - In The Air Tonight - ~Requested by Anonymous : Who had this to say:- .. Cool song~
now playing: Sting - An Englishman In New York - ~Requested by Xgeek : Who had this to say:- Nothing...~
now playing: Human League - Open Your Heart
now playing: Vengaboys - Up + Down - ~Requested~


I even have a mod for the mod that outputs the show details if a show is running.
Code:
now playing: Culture Club - Everything I Own - Now Playing: Top ten requests countdown #10 with 2 requests
now playing: Bonnie Tyler - Holding Out For A Hero - Now Playing: Top ten requests countdown #9 with 2 requests
now playing: Gregory Isaacs - Night Nurse - Now Playing: Top ten requests countdown #8 with 2 requests
now playing: Usher - My Boo - Now Playing: Top ten requests countdown #7 with 2 requests
now playing: Sting - An Englishman In New York - Now Playing: Top ten requests countdown #6 with 3 requests
now playing: B 52'S - Love Shack - Now Playing: Top ten requests countdown #5 with 3 requests
now playing: Black Eyed Peas - Let's Get Retarded - Now Playing: Top ten requests countdown #4 with 3 requests
now playing: Vengaboys - Up + Down - Now Playing: Top ten requests countdown #3 with 4 requests
now playing: Christopher Cross - Ride Like The Wind - Now Playing: Top ten requests countdown #2 with 5 requests
now playing: Adam Sandler - Secret - Now Playing: Top ten requests countdown #1 with 7 requests


I am keen to find out what it is you are seeing, as I can not replicate.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 11:17 am 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
BasKido, Please see this thread (goes to Winamp forums) (*sigh* FesterBots... Good times...)

Are you listening to the stream on the same machine as the source?
Does the password get appended when using a super long character string?

**************************

xgeek...
Excellent stuff. Isn't it fun?
Check your DNAS history to see if long titles get the password appended for you.

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

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 11:21 am 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
So it's nothing I did? :?

I did a test and wrote a dedication that was about 500 characters long.
It seems the title stream is limited to 225 characters total. After that it just got truncated. No password was displayed tho :?


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 12:56 pm 
Offline
Junior User
Junior User

Joined: September 14th, 2004, 5:17 pm
Posts: 65
@xgeek

Thanks for the tip :)
It works fine now.

But how can i work whit this code and sam whit account names like Ringo Request? so that i can see in winamp requested bij Ringo?

Manny thanks for your help and sharing this pal script :)

Greetzzzz
Ringo


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 1:38 pm 
Offline
Junior User
Junior User

Joined: October 25th, 2004, 3:14 am
Posts: 74
Hi Mate,

I don't mean to sound rude but I did not understand that :oops:

Could you say it again?
Sorry :oops:


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 4:56 pm 
Offline
Senior User
Senior User

Joined: March 24th, 2004, 9:00 am
Posts: 213
Location: The Land Of The Legal Music
thx fester, i am listening 2 my stream on the source pc, it get showed when about 5 * 5 letter words are used in dedication :cry:
btw. my pass is 10+ chars with letters and numbers & capitals

_________________
Best Regards
- Always Remember, An Audio Cd Is 1411Kbps... ;)
My Audio Quality Kicks 977-Hitz Off The Air 8)


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 5:15 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
I find the best way to tune into my own stream is to put SAM on silent (not mute but use silent output) then source a local/private DNAS for lan listening.

Get the added benefit of hearing exactly what your listeners hear.

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

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2004, 5:17 pm 
Offline
Senior User
Senior User

Joined: March 24th, 2004, 9:00 am
Posts: 213
Location: The Land Of The Legal Music
good idea, does it stop the pass-in-title bug too?

_________________
Best Regards
- Always Remember, An Audio Cd Is 1411Kbps... ;)
My Audio Quality Kicks 977-Hitz Off The Air 8)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 10 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