Aj one needs to be a programmer :) and i'm not :(
when my script works, it might be a nice example in the documentation of
liquidsoap.
but,,,,,now i'm getting:
C:\Program Files\liquidsoap-win32>liquidsoap test-2.liq
At line 33, char 35: the variable title used here has not been previously
defined.
As error message.....
sorry to bother you again..
kind regards,
Dennis
Op 19-3-2013 20:28, Samuel Mimram schreef:
> The right syntax is
>
> [("title",title)]
>
> at the end of mm, notice the parenthesis!
>
> ++
>
> Sam.
>
> On Tue, Mar 19, 2013 at 8:19 PM, Dennis Heerema <[email protected]> wrote:
>> Hi,
>>
>> I'm now getting the error:
>>
>> C:\Program Files\liquidsoap-win32>liquidsoap.exe test-2.liq
>> At line 33, char 20:
>> this value has type
>> (...)->[string] (infered at line 12 char 1 - line 31 char 3)
>> but it should be a subtype of
>> (...)->[(_*_)]
>>
>> that is about the following part of the config:
>>
>> s = map_metadata(mm, s)
>>
>> To be specific character 20 is after (mm
>>
>> kind regards,
>>
>> dennis
>>
>>
>>
>>
>> Op 19-3-2013 19:38, Samuel Mimram schreef:
>>> Hi,
>>>
>>> I have added location of the error for parsing errors, so now I get
>>>
>>> At line 20, char 15-23: Invalid time interval: precisions differ.
>>>
>>> with your script. The culprit is 1w20h-22h which is invalid because
>>> you must specify the day for both or none. The correct expression is
>>> 1w20h-1w22h (and similarly for others).
>>>
>>> Cheers,
>>>
>>> Samuel.
>>>
>>> On Tue, Mar 19, 2013 at 7:14 PM, Dennis Heerema <[email protected]>
>>> wrote:
>>>>
>>>> Hi Sam,
>>>>
>>>> Thanks...I think i'm getting there....but there is still something not
>>>> right in my config, liquid won't start, what am i missing or doing wrong?
>>>>
>>>> Kind regards,
>>>>
>>>> Dennis
>>>>
>>>>
>>>> # Input the stream,
>>>> # from an Icecast server or any other source
>>>> url = "http://127.0.0.1:8000/studio.flac"
>>>> input = mksafe(input.http(url))
>>>>
>>>> s = input
>>>>
>>>> def mm(m) =
>>>> title = m["title"]
>>>> title = if 22h-01h then "Easylistening -- #{title}" else title end
>>>> title = if 1h-08h then "Non-Stop Muziek -- #{title}" else title end
>>>> title = if 10h-20h then "Non-Stop Muziek -- #{title}" else title end
>>>> title = if 1w20h-22h then "LIVE: Los Verband -- #{title}" else title
>>>> end
>>>> title = if 2w8h-10h then "Herhaling: Los Verband -- #{title}" else
>>>> title end
>>>> title = if 2w20h-22h30 then "LIVE: Als Pleister Op De Wonde --
>>>> #{title}" else title end
>>>> title = if 3w8h-10h then "Herhaling: Als Pleister Op De Wonde --
>>>> #{title}" else title end
>>>> title = if 3w20h-22h then "LIVE: Flevo Vitaminen -- #{title}" else
>>>> title end
>>>> title = if 4w8h-10h then "Herhaling: Flevo Vitaminen -- #{title}"
>>>> else title end
>>>> title = if 4w20h-22h then "LIVE: De Muzikale Vaart -- #{title}" else
>>>> title end
>>>> title = if 5w8h-10h then "Herhaling: De Muzikale Vaart -- #{title}"
>>>> else title end
>>>> title = if 5w20h-22h then "LIVE: Flevo WeekendShow -- #{title}" else
>>>> title end
>>>> title = if 6w8h-10h then "Herhaling: Flevo WeekendShow -- #{title}"
>>>> else title end
>>>> title = if 6w20h-22h then "Herhaling: Flevo Klassiek -- #{title}"
>>>> else title end
>>>> title = if 7w8h-10h30 then "LIVE: Flevo Klassiek -- #{title}" else
>>>> title end
>>>> title = if 7w10h30-11h30 then "LIVE: Kerkdienst -- #{title}" else
>>>> title end
>>>> ["title", title]
>>>> end
>>>>
>>>> s = map_metadata(mm, s)
>>>>
>>>> # First transcoder: MP3 80 kbps
>>>> output.icecast(%mp3(stereo=true, stereo_mode="joint_stereo", bitrate=80,
>>>> internal_quality=0), host = "127.0.0.1", port = 8000, password = "xxxx",
>>>> mount =
>>>>
>>>> "studio.mp3",genre="various",url="http://www.flevoziekenomroep.net",description="FlevoZiekenOmroep",
>>>>
>>>>
>>>> Op 18-3-2013 19:19, Samuel Mimram schreef:
>>>>> Hi,
>>>>>
>>>>> In this case, I would use map_metadata with something like this:
>>>>>
>>>>> s = ...
>>>>>
>>>>> def mm(m) =
>>>>> title = m["title"]
>>>>> title = if 22h-01h then "Easylistening -- #{title}" else title end
>>>>> ["title", title]
>>>>> end
>>>>>
>>>>> s = map_metadata(mm, s)
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Samuel.
>>>>>
>>>>> On Tue, Mar 12, 2013 at 6:46 PM, Dennis Heerema <[email protected]>
>>>>> wrote:
>>>>>> Hello Sam,
>>>>>>
>>>>>> I would like to replace the metadata at scheduled times for the live
>>>>>> program
>>>>>> name:
>>>>>>
>>>>>> Example:
>>>>>>
>>>>>> - Monday 20:00-22:00 programname 1
>>>>>> - thurseday 19:00-20:00 news
>>>>>> - thurseday 20:00-22:00 programme 2
>>>>>> - Sunday 08:00-10:30 Classcal musik
>>>>>>
>>>>>> etc etc
>>>>>>
>>>>>> Outside these hours i want to use the metadata from the source stream
>>>>>> plus
>>>>>> if possible inserted a programmename like - daily 22:00-01:00
>>>>>> easylistening
>>>>>> - daily 01:00-08:00 musicmix
>>>>>>
>>>>>> etc etc
>>>>>>
>>>>>> The source stream is also the stream providing the LIVE programm,
>>>>>> streamed
>>>>>> by Edcast source client, the metadata is provided by a text file from
>>>>>> Zararadio.
>>>>>>
>>>>>> B
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_mar
>>>> _______________________________________________
>>>> Savonet-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users