FS#12054 - Highlight each album's last-played track in database views - great for audiobooks and podcasts
Opened by sideral (sideral) - Thursday, 07 April 2011, 22:54 GMT
Last edited by sideral (sideral) - Monday, 18 April 2011, 13:54 GMT
The attached proof-of-concept patch highlights (places the cursor at) each album's last-played track in database views. The intention is to allow easy resuming of multi-track audiobooks or podcasts where they were last left off. This works best when autoresume has also been enabled.
The patch relies on runtime statistics gathering being enabled (and the DB needs to be enables as well, of course).
The current patch has some caveats that I plan to address in future revisions:
Right now, it's unconditionally enabled for all database-based track views. We might consider allowing to turn this off for regular music albums.
When the last-played track has been completed (played through to its end), we should actually highlight the next track (or the first track if the last-played track was the final track of the album). [EDIT: fixed – see latest patch in comments section]
It would be great if a similar feature was available for the file browser. I'd find it acceptable if that would require the DB as well (as that's the place where the last-played info is stored). It could benefit from an add-to-DB-as-files-are-played feature (aka FS#12073).
[EDIT: Clarified summary. Fixed a rather severe bug in the patch to make it actually work. :) ]
[ EDIT 2: Linked to FS#12073. Addressed one caveat. ]