Support and General Use > Audio Playback, Database and Playlists
Tagnavi_custom.config: last played
SoulSkorpion:
I'm trying to create a custom database view where it shows only songs that I haven't heard in the last four days. Looking at the existing items in the tagnavi.config, my understanding is that it can access the last played time, but I can't figure out the syntax from the examples there. I tried looking at the wiki and I see that the lastplayed tag is available, but the comment of "Incremental number. Works, but not sorted correctly when used in filter" is cryptic and unhelpful.
Google and forum searches for tagnavi syntax haven't turned anything up, other than posts from 2006 saying that it's still experimental. Any hints about how the syntax works in this department would be greatly appreciated.
roolku:
--- Quote from: SoulSkorpion on August 09, 2007, 08:47:18 AM ---I'm trying to create a custom database view where it shows only songs that I haven't heard in the last four days.
--- End quote ---
Not currently possible, as the DB doesn't store the time stamp when a song was last played (not useful for targets without RTC)
I wrote a patch once: http://www.rockbox.org/tracker/task/6301 (6_dayssince.patch - doesn't apply anymore) for that but abandoned the idea as I didn't find it very useful.
--- Quote ---and I see that the lastplayed tag is available, but the comment of "Incremental number. Works, but not sorted correctly when used in filter" is cryptic and unhelpful.
--- End quote ---
Well, there is a number that increments whenever a song is played and is assigned to that songs lastplayed field. Feel free to clarify the wiki. :)
bascule:
Unfortunately, there is no 'Real-Time' information stored in the database, only 'relative' (either to now or to the last database update).
A quick 101 on the lastplayed tag, as used in the default Database config:
--- Code: ---%format "fmt_lastplayed" "%06d%s - %s" lastplayed artist title %sort = "inverse" %limit = "99" %strip = "6"
--- End code ---
This formatting string uses (but strips from view) the lastplayed value to create a list of tracks in the order in which they were listened to.
It then inverts it, to display the most recent first.
It then limits it to 99 tracks
--- Code: ---"Recently played tracks" -> title = "fmt_lastplayed" ? playcount > "0"
--- End code ---
This database menu item then uses the formatting string defined above to choose the tracks, in this case going directly to the track title.
The conditional 'playcount > "0" ensures that tracks that have never been listened to are excluded.
This is necessary because the lastplayed value for all non-listened-to tracks is zero and they can show up in the listing if not explicitly taken out.
So, to plainly answer your question, no, you can't specify by actually how long ago you last listened to them, only relatively how long ago compared to all the tracks you have listened to.
Job Van Dam:
I'm wondering is it possible to show the number of tracks in each genre?
bascule:
Not as far as I know...
Navigation
[0] Message Index
[#] Next page
Go to full version