Rockbox mail archiveSubject: Re: Database extended: statistical info
Re: Database extended: statistical info
Date: Sun, 17 Oct 2004 17:14:06 +0200
Michael Graham wrote on Sunday, October 17, 2004, 11:50:16 AM:
>> I'd like to throw another topic into the database discussion. I'd really
>> favor if we could design a database that allows to store statistical
>> usage info about the song like
>> - how often it was played
>> - how often it was skipped
>> (- maybe a song rating)
>> That could enable us to generate playlists eg of the least often played
>> songs on the fly. A real plus.
MG> I remember there was some talk awhile back about a patch that would
MG> generate a logfile of all songs played (and skipped, etc.). Did
MG> anything ever come of that?
You can download my old logging patch and a simple delphi app here:
I personally have no time/interest in improving it, I simply use my
patch and look from time to time which music I didn't hear in the last
months to delete them. Feel free to use/improve it. It would be nice
if it would be added to the cvs version some day. The #1 functionality
that should be added is to split up logging in two functions e.g.
"log_into_buffer" and "write_log_buffer", so that the first is called
instead of the write_log function I used (that writes to the hdd
immediately) and the second is called each time before the hdd is
turned off and that writes the log entries that were buffered to ram
down to the hdd.
Received on 2004-10-17