Help - Search - Members - Calendar
Full Version: string help needed
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Syxxpacc
CODE
$puts(total,$add($right(%play_date%,2),$select($substr(%play_date%,3,4), $if($strcmp($left(%play_date%,2),04),0,1),$if($strcmp($left(%play_date%,2),04),3,4),4,0,2,5,0,3,6,1,4,6),6,$left(%play_date%,2)))
$select($add(1,$mod($add($get(total),$div($left(%play_date%,2),4)),7)),Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday)


$num($right(%play_date%,2),1)$if($strcmp($right(%play_date%,2),01),er) $select($substr(%play_date%,3,4),January,February,March,April,May,June,July,August,September,October,November,December) 20$left(%play_date%,2)$get(bleu) at $left(%play_time%,2):$right($left(%play_time%,4),2)
,$get(bleu)This is your first time listening to this song.)


ok this is the info on the statistics window but it is currently in australian mode smile.gif which means it shows shit in my foobar panel. It doesnt change the date but it changes the year etc tongue.gif so i need an European version of it smile.gif if it matters anyhow then Estonian version tongue.gif GMT +2 and date format could also be date/month/year
thanks in advance
Synthetic Soul
Are you sure that you are storing the data in %play_date% and %play_time% in the same format that the string expects (YYMMDD and HHMM)?

Can you please post the format you are using, and what the result is after this string has formatted it.

Muchos bananas.
Syxxpacc
http://www.mg.edu.ee/~syxxpacc/fb2k6.JPG tongue.gif here is the pic smile.gif
Synthetic Soul
... and how are you storing your data?

Seeing as you are so adept with screenshots let's see one of the Properties panel for the MP3 highlighted ("My Everything").

Are so many smilies really necessary? What happened to the gold old full stop or exclamation mark? Ho hum.

Edit: And while I'm on one how about some bloody capital letters? I see "European" and "Estonian" deserve one, but what about the beginning of your sentences. They have feeling too you know.

@Syxxpacc

Gramatical differences aside, we need to see the format of your %play_date% and %play_time% tags in order to:
  1. Confirm that the problem is a %play_date%/%play_time% format conflict, and not the script
  2. Write you a new script that will format your data the way you want it (which is yet to be confirmed).
hedge153
lol we are getting picky now aren't we... tongue.gif
Alright now I'm just being annoying hehe.
Synthetic Soul
Overuse of smilies is the digital equivalent of teenage girls ending all their sentences with a minimum of three exclamation marks.
Phi
QUOTE(Synthetic Soul @ Feb 24 2005, 08:41 PM)
Edit: And while I'm on one how about some bloody capital letters?  I see "European" and "Estonian" deserve one, but what about the beginning of your sentences.  They have feeling too you know.

Oh I see, but Australians don't deserve one or have feelings? tongue.gif
Synthetic Soul
QUOTE(Phi @ Feb 24 2005, 11:08 AM)
Oh I see, but Australians don't deserve one or have feelings? tongue.gif
Curiously the capital of Australia has always been a source of misunderstanding it seems.

Is it Melbourne? Is it Syndney? No, it's bloody Canberra - a place I've never heard any mention of, except that it's the capital of Australia.

Australians do definately deserve a capital - but it should be Sydney.
Phi
Haha. Yes, Canberra hardly deserves the title (which it holds because it is the location of our federal parliament, I assume).

And no, Melbourne is the One True City. smile.gif
Syxxpacc
way too much offtopic now really can someone actually give some support or not
upNorth
QUOTE(Syxxpacc @ Feb 24 2005, 01:31 PM)
way too much offtopic now really can someone actually give some support or not
*
Answer this
QUOTE(Synthetic Soul @ Feb 24 2005, 10:41 AM)
@Syxxpacc

Gramatical differences aside, we need to see the format of your %play_date% and %play_time% tags in order to:

  1. Confirm that the problem is a  %play_date%/%play_time% format conflict, and not the script
  2. Write you a new script that will format your data the way you want it (which is yet to be confirmed).
*
and it would be easier to help you.
Synthetic Soul
QUOTE(Syxxpacc @ Feb 24 2005, 12:31 PM)
way too much offtopic now really can someone actually give some support or not

QUOTE(Synthetic Soul @ Feb 24 2005, 09:03 AM)
Are you sure that you are storing the data in %play_date% and %play_time% in the same format that the string expects (YYMMDD and HHMM)?

Can you please post the format you are using
QUOTE(Synthetic Soul @ Feb 24 2005, 09:41 AM)
... and how are you storing your data?

Seeing as you are so adept with screenshots let's see one of the Properties panel for the MP3 highlighted ("My Everything").
QUOTE(Synthetic Soul @ Feb 24 2005, 09:41 AM)
Gramatical differences aside, we need to see the format of your %play_date% and %play_time% tags in order to:

  1. Confirm that the problem is a  %play_date%/%play_time% format conflict, and not the script
  2. Write you a new script that will format your data the way you want it (which is yet to be confirmed).

I'm not holiding this thread up...
Syxxpacc
http://www.mg.edu.ee/~syxxpacc/tags.JPG if this is what u mean
Synthetic Soul
Yes, that will do. Thank you.

Your current tag formats are %D%M%y and $H$M$S.

From my brief decyphering of the script it appears to require the formats as %y%M%D and $H$M or $H$M$S.

Therefore, if you change the %play_date% format to %y%M%D (from %D%M%y) the script should work as intended.

The question is now: do you want the result in the format <weekday> <day> <monthname> <year>, or some other format?

Edit:
QUOTE(Syxxpacc @ Feb 23 2005, 09:04 PM)
It doesnt change the date but it changes the year etc tongue.gif so i need an European version of it
Considering the variable name "bleu" I would suspect the author was French, and therefore European. They may be Canadian or Nigerian of course, but I would put my money on French.

By European format, do you mean DD/MM/YY? Isn't DDDD DD MMMM YYYY more aesthetic?
Syxxpacc
QUOTE(Synthetic Soul @ Feb 24 2005, 10:37 PM)
The question is now: do you want the result in the format <weekday> <day> <monthname> <year>, or some other format?



that would be the best format
Synthetic Soul
QUOTE(Syxxpacc @ Feb 25 2005, 06:23 PM)
QUOTE(Synthetic Soul @ Feb 24 2005, 10:37 PM)
The question is now: do you want the result in the format <weekday> <day> <monthname> <year>, or some other format?
that would be the best format
The current string should output in that format, and 95% does. The only issue I can see from your screenshot is that the weekday and day have no space between them. I think somehow in copying and pasting you've just lost a space.

Try using the code below:

CODE
$puts(total,$add($right(%play_date%,2),$select($substr(%play_date%,3,4), $if($strcmp($left(%play_date%,2),04),0,1),$if($strcmp($left(%play_date%,2),04),3,4),4,0,2,5,0,3,6,1,4,6),6,$left(%play_date%,2))) $select($add(1,$mod($add($get(total),$div($left(%play_date%,2),4)),7)),Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday) 
$num($right(%play_date%,2),1)$if($strcmp($right(%play_date%,2),01),er) $select($substr(%play_date%,3,4),January,February,March,April,May,June,July,August,September,October,November,December) 20$left(%play_date%,2)$get(bleu) at $left(%play_time%,2):$right($left(%play_time%,4),2),$get(bleu)This is your first time listening to this song.)

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.