Hi Jef,

I think I will actually find that useful for my radio page! But what I 
am really looking for is way to keep it all within a LS script and send 
the data I've stored for a playlist item in my database to my streaming 
server (Icecast).

Damien

On 01/17/12 04:41, Jean-Francois Mauguit wrote:
> Hello,
>
> Here we are using request.dynamic calling a php script giving LS the 
> information.
>
> Here is the relevant lines from the php script
>
> $annotate = 'annotate:display_title="'.addslashes($next->TITLE[0]).'"';
> $annotate .= ',display_artist="'.addslashes($next->ARTIST[0]).'"';
> $annotate .= ',display_id="'.addslashes($next->ID[0]).'"';
> $annotate .= ',display_year="'.addslashes($next->YEAR[0]).'"';
> $annotate .= ',liq_fade_in="'.number_format($next->FADEIN[0]/1000, 2, 
> '.','').'"';
> $annotate .= ',liq_fade_out="'.number_format($next->FADEOUT[0]/1000, 2, 
> '.','').'"';
> $annotate .= ',liq_start_next="'.number_format($next->MIX[0]/1000, 2, '.', 
> '').'"';
> $annotate .= ':'.addslashes($new_filename);
> echo $annotate."\n";
>
> HTH
>
> Jef
>
>
> On 15 Jan 2012, at 15:39, Audiodef Online wrote:
>
>> How do I get LS to send a set of default metadata when none exists for a
>> given file in my playlist?
>>
>> This is my current playlist management set up:
>>
>> Playlist data is stored in a MySQL db. I keep more than just file URL's,
>> but file URL's have their own table. I have a web interface. When I'm
>> done checking/updating my playlist via the web interface, I run a script
>> that dumps all file URL's marked "active" into my playlist file,
>> overwriting the existing file. This is something I've designed myself
>> because existing solutions do not let me work with remote files.
>>
>> I mention this because I'm wondering if it's possible to do more than
>> simply send default metadata to Icecast. What I'd like to do instead is
>> read the "artist" and "title" fields from my database and use those when
>> the file itself wasn't given metadata by the author. I can dump those
>> fields to a file, perhaps to the playlist file using delimiters, but I
>> don't know how, if this is possible, to get LS to detect the existence
>> of metadata in an MP3 or ogg file, and if it doesn't exist, use the
>> extra information from my db.
>>
>> I like to play files from artists who don't always add metadata. I would
>> like to have something other than "radio.ogg" show up in a media player,
>> and I would prefer not to eliminate good music because of a lack of
>> metadata in files.
>>
>> Damien
>>
>> -- 
>> My music: http://audiodef.com
>> Synthetronica: http://synthetronica.com
>> Male survivors of domestic violence: http://abusedmen.org
>>
>>
>> ------------------------------------------------------------------------------
>> RSA(R) Conference 2012
>> Mar 27 - Feb 2
>> Save $400 by Jan. 27
>> Register now!
>> http://p.sf.net/sfu/rsa-sfdev2dev2
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>


-- 
My music: http://audiodef.com
Synthetronica: http://synthetronica.com
Male survivors of domestic violence: http://abusedmen.org


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to