Support and General Use > Audio Playback, Database and Playlists

Tagnavi_custom.config: last played

<< < (2/2)

SoulSkorpion:

--- Quote from: bascule on August 09, 2007, 10:05:26 AM ---Unfortunately, there is no 'Real-Time' information stored in the database, only 'relative' (either to now or to the last database update).

--- End quote ---

--- Quote ---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.
--- End quote ---
Oh right. Thanks.


--- Quote ---%format "fmt_lastplayed"  "%06d%s - %s" lastplayed artist title %sort = "inverse" %limit = "99" %strip = "6"
--- End quote ---
This was the part I couldn't work out. It looks a bit like a sprintf string... ah, and there are three fields after it that get substituted in, right? I didn't realise that lastplayed was just a digit, and I was trying to figure out how the format string could contain a date.

What causes these details to be stripped from view or is that automatic?

pabouk:

--- Quote from: SoulSkorpion on August 09, 2007, 07:56:25 PM ---What causes these details to be stripped from view or is that automatic?
--- End quote ---
The part '%strip = "6"' removes the first 6 characters from the view. Unfortunately it is not possible to strip a variable number of character using something like regular expressions.

Please read the documentation Wiki - DataBase and/or Daily Built Manuals.

bascule:

--- Quote from: SoulSkorpion on August 09, 2007, 07:56:25 PM ---... ah, and there are three fields after it that get substituted in, right?

What causes these details to be stripped from view or is that automatic?

--- End quote ---

Yes for substitution. Each %whatever token is rendered using the respective tag in the subsequent text.

I was hoping that by using the phrase '...formatting string uses (but strips from view)...' that the reader would automatically associate the %strip token as the one doing that function...  :P

* bascule ...must ...try ...harder to be understood

SoulSkorpion:

--- Quote from: bascule on August 10, 2007, 04:26:21 AM ---
I was hoping that by using the phrase '...formatting string uses (but strips from view)...' that the reader would automatically associate the %strip token as the one doing that function...  :P

* bascule ...must ...try ...harder to be understood
--- End quote ---

Well, if it helps, what I initially thought that part meant was that it would strip out the sixth arg of something. Seeing as there were only three fields being operated on, that confused me :)

Navigation

[0] Message Index

[*] Previous page

Go to full version