Volition Wrote: 
> I've done a little bit of vb scripting. I don't even know what language
> the plugins are in.
> 
The plugins are written in perl. You will find a a short introduction
to plugins by selecting the "Help/Technical Information/Slimserver
Plugins" menu in the slimserver web interface.

Volition Wrote: 
> Can you point me in the direction of some resources, so i can have a go
> at writing the plugin which reads the popm field and then has a browse
> by. 
> 
I think the reading of tag information in the standard slimserver can
be found in the _readTags method in the Slim/Schema.pm (or in
Slim/DataStores/DBI/DBIStore.pm in slimserver 6.3 or earlier). In this
thread(http://forums.slimdevices.com/showthread.php?t=19773) there is a
plugin that writes information to the music files, there should be some
code in it that shows you how to write information to the tags.

To simplify things a little I would suggest that you use the TrackStat
user interface/remote commands for changing ratings. To do this you
just have to implement the setTrackStatRating method, see readme.txt
included with TrackStat for a sample.

The browsing is a little more complicated, so I would suggest that you
start with reading/writing the tags information before you start
thinking about the browse mechanism.

Volition Wrote: 
> I suppose i will have to add something to the scanning process. Than
> read from that table. Or do you think i should write to a separate DB. 
I don't think you will need to create a separate database.
You could put it in a separate table, if you choos to do so you should
probably use the id column in the tracks table as the relational key
between the tables. You could just clean your table and rebuild it
during the scanning process to avoid synchronization issues. 

But you can also choose to write the ratings directly to the rating
column in the standard slimserver tracks table. The only disadvantage
with this is that I am not sure if it is possible to make sure that
your scanning routine is executed last. If it isn't executed last it
may result in that the iTunes or MusicMagic plugins overwrite your
rating values. In TrackStat don't hook into the scanning process
instead I subscribe to the "rescan done" notification, the result is
that my code is execuded after the rescan has finished. But please note
that this notification is only available in slimserver 6.5 and later.
There are a lot of advantages with using the rating field in the
standard slimserver tables, for example you don't have to manage your
own table, there already is code for updating/reading the rating
field(in slimserver 6.5) and the rating will be automatically visible
in the slimserver user interface.

If you want to hook into the scanning process I would suggest that you
look in the iTunes or MusicMagic plugins.

Finally, note that there are some differences in the plugin interface
between slimserver 6.5 and 6.2/6.3, so you might want to choose to make
the plugin either for 6.5 or for 6.2/6.3. If you want it to work for all
realeases thats also possible but it makes things a little more
complicated and it can be done later when you have something that works
for one of the releases.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=25409

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

Reply via email to