1. Thanks - I'll fix that.

2. Thanks - I'll fix that.

3. If you look on the "how it works" web page I think I explain it. I hook
the execute handler to spot when rescans are done, then periodically check
to see if the scan has finished, and if it has look for anything in the
database that hasn't been "lazified". So, as long as you're bringing in new
music through a rescan then lazy search will be updated too. You should
never need to wipe the music library.

As it's not easy for plugins to manage their own data in the database I
cheat and add some extra to the "search" columns in artists, albums and
tracks. This is convenient for this plugin as that's kind of what those
columns are for and the user doesn't see them directly through any of the
UIs anyway.

I agree that it would be better for plugins to have their own 'private'
database somewhere. Ideally I'd like a way for plugins to add their own
custom columns to fundamental types (artists, albums, tracks, playlist etc),
and have SlimServer call into registered plugins to let them deal with the
extra data when it loads/saves objects. That would avoid tricks like
watching for rescans and would let other plugins add non-search related
information (MusicMagic, MoodLogic and MusicBrainz columns spring to mind,
which are added to the main database even if you're not using a plugin
that's interested). However, that's quite a departure and is something the
Slim Devices devs would certainly have to instigate. It would certainly have
simplified my plugin, though.

Glad you like it, I'll post when I've updated for the above and other
suggestions I've received.

Stuart

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ceejay
Sent: 7 November 2005 10:17 AM
To: [email protected]
Subject: [SlimDevices: Plugins] Re: ANNOUNCE: Plugin for much
improvedsearching with the Squeezebox remote


Hello

Many thanks for this, its a great idea, I've tried it and it seems to
work!  A few comments/questions, if I may...

(1) very small bug - if I enter Lazy Search and select Albums I get the
entry screen where it says Enter Album Search ... but "Lazy Search for
Artists" on the top line

(2) possibly confusing - if I select "Songs" I get "Enter TRACK
search"

(3) I'm very interested to see that you've used the database to store
your codes in.  Is this the first plugin to do this sort of thing?  It
raises some interesting questions - how do you make sure that the data
is updated when new tracks are added? Does the data get updated when
changed tracks are identified?  Do we have to "wipe cache" every time
we want to get up to date (which would be a bit unfriendly, especially
when there's another plugin using the database for some other
purpose...).  

Is there / should there be a hook in slimserver for plugins that have
data in the database to be notified that they need to look at some data
to do some updating?

Many thanks for this, BTW - it looks like a lot of work has gone into
this!

Regards
Ceejay


-- 
ceejay
------------------------------------------------------------------------
ceejay's Profile: http://forums.slimdevices.com/member.php?userid=148
View this thread: http://forums.slimdevices.com/showthread.php?t=17943

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to