Help - Search - Members - Calendar
Full Version: Checking Tag Data Then Displaying Specification?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Keikonium
I was wondering if the following was possible:

Check for the first character in a %lyrics% tag and if its,

1. a '[' display "Is Timestamped" or
2. any other character to display "No Timestamp".

Unless there is a better way to check for timestamped lyrics?

I was thinking something like:
CODE
$if(%lyrics%,'[',Is Timestamped,No Timestamp)

But obviously thats not the proper syntax for an $if statement tongue.gif.

Not to add any more challenge to the code, but if "%artist% - %title%" could be stripped from being included in the searching of the lyrics tag, that might help too smile.gif.

Thanks smile.gif
freanir
Titleformat Reference
Keikonium
I had looked over that many times. I never really ventured out of the $if statements however. So I figured that was my problem tongue.gif. Thanks for making me go look it over again wink.gif. I have code that works now smile.gif.

CODE
$rgb(95,150,233)Lyrics: $if($strchr(%lyrics%,'['),$rgb(61,173,95)Time Stamped,$rgb(160,35,38)No Timestamp)


Finds the first instance of [ smile.gif.
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.