QUOTE(graham_mitchell @ Jan 17 2005, 01:10 AM)
musicmusic, thanks for all the hard work so far!
One thing that makes me a little nervous about using Foobar is that you need to configure so much yourself - what happens if need to rebuild Foobar on another PC? Or upgrade Foobar? What do you need to backup to be able to have it all running again in your customised way?
foobar2000.cfg is the main thing, as thats where most of your settings are stored. The file is either in your foobar2000 dir, or if use profile support is enabled i think it is in the application data\foobar2000 sub-folder in your profile folder.
QUOTE(graham_mitchell @ Jan 17 2005, 04:09 PM)
how do you display the codec? I searched the documentation for 'codec' and nothing came up
$codec() is the easiest way..
QUOTE(upNorth @ Jan 17 2005, 03:28 PM)
QUOTE(musicmusic @ Jan 17 2005, 12:58 AM)
QUOTE(upNorth @ Jan 16 2005, 09:25 PM)
I want to start using a Julian Date tag in my formatting, but I can't remember where I found info about what's available (probably somewhere in this thread, but all my searches failed). I'm talking about %_system_day%, %_system_month%, %_system_year% and so on.
Is there one that will provide the Julian Date? I want to start adding a %j tag with foo_playcount, to make it easy to mark tracks that has been played the last x days.
My reason for wanting the julian date, is that it seems inefficient to do such a thing with my regular date tag (format: 160104).
With the respective option enabled,
%_system_year%
%_system_day%
%_system_month%
%_system_day_of_week%
%_system_hour%
are available in the global variables string only, and you shouldn't have any problems using those to work out if they where played in the last day.
Yes, the last day, as in current
date is ok, and I already do that. What I want to do now, is something that shows what's been played the last 12, 24, 48 and maybe 72 hours instead.
Taking into account the varying number of days in a month, the month itself and the year, seems to be an inefficient way of doing this. But, calculating it using the julian date (e.g.: 2453388) would be very easy, and this kind of tag can already be added with foo_playcount. Any chance you could include this in addition to the ones you have listed?
Note: In case I'm just thinking too complicated, please tell me how to do this efficiently with what's currently available.
Yes I see what you mean and your are correct it would be messy trying to to it with those, and so I will look into adding a julian date field (it will only update every hour though).
In terms of getting getting the julian data from those fields, I tried:
CODE
$puts(year,$sub(%_system_year%,1))
$puts(month,$sub(%_system_month%,1))
$puts(hour,%_system_hour%)
$puts(day,$sub(%_system_day%,$ifgreater($get(hour),11,0,1)))
$puts(monthdays,$ifequal($get(month),1,31,$ifequal($get(month),2,28,$ifgreater($get(month),7,$sub(31,$mod($get(month),2)),$ifgreater($get(month),2,$add(30,$mod($get(month),2)),0)))))
$add($div($get(year),4),$mul($get(year),365),$get(monthdays),$get(day),1721410)
Whilst I dont think its anything you couldn't have come up with yourself, its not that complicated, it does actually go inaccurate after 2100 due to leap years I think (?), but then that doesn't really matter.. So you can use that to set a variabl in your global string if you want until the field is added (be warned - those date fields dont work when using preview to console)