On Thu, 16 Jun 2011 11:44:33 -0400, Romain Beauxis <[email protected]>  
wrote:

> 2011/6/15  <[email protected]>:
>> Hi,
>
> Hi!
>
>> I have a daily show that is called 'Special Program'. The URL and  
>> contents
>> are determined through a PHP file before the programming day starts.
>> I would to retrieve the unique filename of the current day's show, to
>> replace
>> the current ID3 tag 'title'
>>
>> code snippet:
>>
>> ****
>>
>>
>> elsif m["filename"] ==
>> "/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls"
>> then
>>                      ("title", "Special Program - see
>> www.RuralCatholicRadio.com for details")
>>
>>
>>
>> # I'd like to replace the above with a call to a special file that
>> contains the
>> filename like this:
>>
>> #
>>  elsif m["filename"] ==
>> "/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls"
>> then
>>                      ("title", "Special Program - %include
>> "/usr/local/radio/current/special/mp3/title.liq")
>>
>>
>> ***
>>
>>
>> Would this work? Is there another way of including say the contents of a
>> one-liner txt/php/or liq file?
>
> This is not going to work, but this:
>   content = get_process_output("cat /path/to/file.txt")
> should :)
> However, you may have a trailing \n with this code. If you only want
> the first line in the file, you should do:
>   content = list.hd(get_process_lines("cat /path/to/file.txt"))


I'm not clear how to use the 'content' in my 'elsif' statement. Would it  
look
like:

content = list.hd(get_process_lines("cat  
/usr/local/radio/current/special/mp3/title.txt"))

elsif m["filename"] ==
"/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls"
  then
                      ("title", "Special Program - %content")

Would this work? I'm not clear on the syntax of calling 'content within a  
statement.

Thanks,
Andre

> Romain


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to