Hi,

Two quick comments. In order for a function to return a result you
should not do result = ... but simply return the result. You should
thus write

def f() =
  get_process_output("php-cgi -q /var/www/requests/changingtext-new.php")
end

The error you are having says that your function does not return
anything (and this is because you put result = ...). Anyway, even with
this fixed, I don't think there is currently a way to dynamically
change the genre of an icecast stream (at least an easy one, you might
be able to use some API from icecast but I am not aware of one...)

Cheers,

Samuel

On Thu, Apr 10, 2014 at 7:57 AM, Senaka Amarakeerthi
<[email protected]> wrote:
> Hi all,
>
> I am trying to dynamically change genre filed of the stream using an
> external script (should be changed at every new  song).
>
> radio_genre = "xxx"
>
> def f() =
>   result = get_process_output("php-cgi -q
> /var/www/requests/changingtext-new.php")
> end
>
> radio_genre = f()
>
>
> output.icecast(%mp3(stereo=true, samplerate=44100, bitrate=128),
>  host="localhost",port=8000,password="pasgoda2001",
>  genre=radio_genre,  description="my radio",mount="mymount",radio)
>
> Above gives the output:
>
>
>   this value has type
>     unit (infered at line 175, char 7-31)
>   but it should be a subtype of
>     string
>
> How can I fix this?
>
> Thanks in advance
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to