PDA

View Full Version : Is there a play history feature?



nico
2006-02-23, 22:50
SlimServer v6.2.1 - 5194...

A track came on yesterday while listening in random track play mode. The original playlist is now gone... Is there any permament log kept by the server of what tracks it played - preferrably with a timestamp? I looked but couldn't find anything...

Thanks,
Nico

mherger
2006-02-24, 00:47
> A track came on yesterday while listening in random track play mode.
> The original playlist is now gone... Is there any permament log kept by
> the server of what tracks it played - preferrably with a timestamp? I
> looked but couldn't find anything...

At the bottom of the RandomPlay web page there's the option to define the
number of tracks you want to see ahead and back.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

ceejay
2006-02-24, 01:00
Have a look at this discussion that will do what you want (and more, actually, but you can always ignore/not use the bits you don't want)

http://forums.slimdevices.com/showthread.php?t=18597 ... make sure you read all the way to the end, in its first release I don't think it would have met your need, but I think it will now.

There was also a discussion on other ways of achieving this at

http://forums.slimdevices.com/showthread.php?t=18520

HTH

Ceejay

Philip Meyer
2006-02-24, 06:08
>A track came on yesterday while listening in random track play mode.
>The original playlist is now gone... Is there any permament log kept by
>the server of what tracks it played - preferrably with a timestamp? I
>looked but couldn't find anything...
>
There isn't anything as standard. I think there used to be a plugin that kept a history, but it doesn't work with the latest slimserver releases.

However, if you have installed the slimscrobbler plugin, you could look at your Last.FM account. This will show recently submitted songs.

Phil

rick's cafe
2006-02-24, 06:41
I too think that a history log for songs played from your music library would be useful (particularly for those with large collections) .... it could be set up as a recently played list and from the webinterface you could define how many tracks are to be kept in the list - say the last 100 tracks...

I dont know any kind of programming that would enable me to develope such a plugin - although I would be interested in learning.. however where does a newbi like myself start?

nico
2006-02-24, 07:11
Thanks for the replies.

I did a bit of digging around the schema as well in the meantime.

I devised the following query which is useful for listing which songs you have listened to recently. Unfortunately, slimserver only records lastPlayed on a per track basis... which means you can't get an exact listing of what you have been listening to. However, if you are happy to see a listing of the most recently played tracks (subtly different) then this will work:

select from_unixtime(lastPlayed),t.title,a.title,c.name
from tracks t, contributors c, contributor_track ct, albums a
where t.playCount is not NULL
and t.id = ct.track
and ct.contributor = c.id
and t.album = a.id
order by t.lastPlayed desc;

stinkingpig
2006-02-24, 22:28
>
> I too think that a history log for songs played from your music library
> would be useful (particularly for those with large collections) .... it
> could be set up as a recently played list and from the webinterface you
> could define how many tracks are to be kept in the list - say the last
> 100 tracks...
>
> I dont know any kind of programming that would enable me to develope
> such a plugin - although I would be interested in learning.. however
> where does a newbi like myself start?
>
>

Simply extend the database schema by one column, record the time played in
there, and then copy the new music feature :) Oh wait, that's not very
simple... maybe I'll just finish cleaning out the inbox and go to bed. in
the meantime, use slimscrobbler and last.fm to get what you want.

--
Jack Coates At Monkeynoodle Dot Org: It's A Scientific Venture!
"I spent all me tin with the ladies drinking gin, so across the Western
ocean I must wander" - traditional

erland
2006-02-24, 22:53
The TrackStat plugin will do exactly what you want in the latest version. It shows statistics in the web interface such as:
- Top rated songs
- Top rated albums
- Top rated artists
- Most played songs
- Last played songs
- Least played songs
- Songs played long ago

Philip Meyer
2006-02-25, 00:53
Actually, the track stat plugin stores the last played time for each track. It should be possible to create a SQL playlist to play the last n tracks played (via the SQL Playlist plugin).

The only problem is it isn't a complete history, as it only records the last played time of each track.

Also, it will by default queue up n tracks, after which it would repeat those tracks.

-----Original Message-----
From: "Jack Coates"<jack (AT) monkeynoodle (DOT) org>
Sent: 25/02/06 05:28:47
To: "Slim Devices Discussion"<discuss (AT) lists (DOT) slimdevices.com>
Subject: Re: [slim] Re: Is there a play history feature?


>
> I too think that a history log for songs played from your music library
> would be useful (particularly for those with large collections) .... it
> could be set up as a recently played list and from the webinterface you
> could define how many tracks are to be kept in the list - say the last
> 100 tracks...
>
> I dont know any kind of programming that would enable me to develope
> such a plugin - although I would be interested in learning.. however
> where does a newbi like myself start?
>
>

Simply extend the database schema by one column, record the time played in
there, and then copy the new music feature :) Oh wait, that's not very
simple... maybe I'll just finish cleaning out the inbox and go to bed. in
the meantime, use slimscrobbler and last.fm to get what you want.

--
Jack Coates At Monkeynoodle Dot Org: It's A Scientific Venture!
"I spent all me tin with the ladies drinking gin, so across the Western
ocean I must wander" - traditional



[Message truncated. Tap Edit->Mark for Download to get remaining portion.]

Christian Pernegger
2006-02-26, 04:17
I'd be very interested in a plugin that keeps a history for played
tracks. It should
- be time- and datestamped
- contain the same track multiple times if it's been played multiple times
(maybe with "(n times)" after the name if the track was played
multiple times in succession.)
- not limit the number of tracks it keeps.

A music calendar would really be fun :)

C.

ceejay
2006-02-26, 04:40
At the risk of repeating myself, isn't this very close?

http://forums.slimdevices.com/showthread.php?t=18597

Ceejay