peterw;278728 Wrote: 
> 
> If you're interested (I was thinking of TrackStat)
> 

Actually, TrackStat already has a history table (track_history) in the
database which contains similar log information:
- id: Unique id of the log entry
- url: The track url of the track logged
- musicbrainz_id: The musicbrainz identifier of the track logged (used
for refreshing the url column after a rescan)
- played: The time the track was played
- rating: The rating when the track was played

I'm using this information in some of the TrackStat browse menus, for
example all the "Recently played" browse menus.

There is actually no reason why this logging would need to be handled
by TrackStat, the only reason it does today is that at the time there
was no other plugin doing it. So if this logging could be handled by
your plugin and it would be logged to the database I would like to
remove it from TrackStat. There is no reason to have the same
functionality in two plugins.

The TrackStat logging mechanism currently logs the urls which makes it
easy to join the information in the track_history table with all the
other tables in the SlimServer database. The disadvantage with this is
that there is no way to keep log entries that belongs to tracks that
have been removed from the SlimServer database. I think an approach
like yours where the real text values are logged in combination with a
key that could be joined with the other tables might be preferable.

One extra feature of the logging in TrackStat is that it ignore tracks
that are played a very short time, for example when the user skips
through a playlist to get to the 10'th track in the playlist. In this
case there is no reason to log the first 9 tracks that are played a
half second. Does your plugin have a similar handling of this or does
it log all tracks that the user skips through ?

The advantage of having the information in the database and having some
key that could be joined with the other tables, is that it would be
possible to make new browse menus with the Custom Browse plugin based
on the logged information.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=44582

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

Reply via email to