PDA

View Full Version : 6.0 Remote URLs in database?



Triode
2005-02-24, 13:22
Dan,

I notice that my database keeps growing as it stores all the remote URLs I play as tracks in the database. It seems to store not
only the playlists and streams played, but also the urls that I use openRemoteStream to fetch?

Is there a way (or are you planning one) to avoid installing urls in the database? If so any pointers [just looked at the shipped
plugins, but may have missed something??]

Adrian

Dan Sully
2005-02-24, 13:27
* Triode shaped the electrons to say...

>I notice that my database keeps growing as it stores all the remote URLs I
>play as tracks in the database. It seems to store not only the playlists
>and streams played, but also the urls that I use openRemoteStream to fetch?
>
>Is there a way (or are you planning one) to avoid installing urls in the
>database? If so any pointers [just looked at the shipped plugins, but may
>have missed something??]

If they are all http urls (as opposed to mms://), you can call
Slim::Player::Protocols::HTTP->new() directly, which is what
openRemoteStream(), and pass it a 'create' => 0 parameter.

See Plugins/MusicMagic/Plugin.pm for an example.

If there's enough demand, openRemoteStream can be reworked or an additional
method, like openRemoteStreamWithParams(), so named args can be passed.

-D
--
You have the puzzle pieces? Good, then turn off the damn walls.

Triode
2005-02-24, 13:37
>
> If they are all http urls (as opposed to mms://), you can call
> Slim::Player::Protocols::HTTP->new() directly, which is what
> openRemoteStream(), and pass it a 'create' => 0 parameter.
>
OK - will look at this for the use of openRemoteStream (used to parse remote web site pages)

However this still leaves the http://* url opened as a playlist [which I can't change from a plugin as it is read in addToList -
called from execute] and streams which are called as a protocol handler. I'm not sure how I can influence these purely from a
plugin?

Is it fair to assume that storing all urls ever played is a bad idea? If so what about never storing a remote url?

Adrian