Hello, can anybody help me by this trackinfo code?
If i start Foobar i have nothing in my playlist, till i select a song in playlist-tree. - Thats ok, but i have some stuff in my trackinfo.
You can see in this screenshot:
I dont want to see this existing "A" near "Song Info" and "0.00MB" near "Tech Info".
Know someone whats wrong in my trackinfo-code?
Here the whole code:
//////////////////////////////////////////////////////////////////////////////////////////////
//// A simple formatting script for foo_uie_trackinfo.
//// It will work with the following tags:
//// %RATING%, %PLAY_COUNTER%, %PLAY_TIME%,
//// %LABEL% and/or %PUBLISHER%.
//// Best viewed in Arial 8pt Bold
//// Created by: korsairr@cogeco.ca
//// Date: Jan 31, 2005
/////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////
//Colors, etc.
////////////////////////////////
$puts(default_color,dee8e5)
$puts(rating_color_1,dee8e5)
$puts(rating_color_2,938881)
$puts(rating_symbol,♫)
$puts(is_playing_color,5357EF)
$puts(tag_missing_color,5357EF)
$puts(heading_color_l,ffb00d)
$puts(heading_color_r,dee8e5)
$puts(is_playing_color,5357EF)
////////////////////////////////
//Code
////////////////////////////////
////////////////////////////////
///////Song Info
////////////////////////////////
$transition( ----- Song Info ------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))
$char(10)$get(default_color)
$if(%title%,$if(%_isplaying%,
$get(is_playing_color)$iflonger(%title%,36,$cut(%title%,33)...,%title%),
$iflonger(%title%,36,$trim($cut(%title%,33))...,%title%)),
A$if(%_isplaying%,
$get(is_playing_color)$iflonger(%_filename_ext%,36,$cut(%_filename_ext%,33)...,%_filename_ext%),
$iflonger(%_filename_ext%,36,$trim($cut(%_filename_ext%,33))...,%_filename_ext%)))
$char(10)$get(default_color)
$if(%artist%,
$iflonger(%artist%,36,$cut(%artist%,33)...,%artist%),
$get(tag_missing_color)Keine Artist Informationen)
$char(10)$get(default_color)
$if(%album%,
$iflonger(%album%,36,$cut(%album%,33)...,%album%),
$get(tag_missing_color)Keine Album Informationen)
$char(10)$get(default_color)
$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),© ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][label],
$get(tag_missing_color)Keine Datum oder Copyright Informationen)
$char(10)$get(default_color)
$if(%rating%,
$repeat($get(rating_color_1)$get(rating_symbol) ,%rating%)$repeat($get(rating_color_2)$get(rating_symbol) ,$sub(3,%rating%)) ,)
$get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)Keine Genre Informationen)
$char(10)$char(10)
////////////////////////////////
///////Statistics
////////////////////////////////
$transition( ----- Statistics -------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))
$char(10)$get(default_color)
$if(%play_date%,
$puts(month,$substr(%play_date%,4,5))
$puts(day,$left(%play_date%,2))
$if($strcmp($left($get(day)1),0),$puts(day,$right($get(day),1)))
$puts(year,$right(%play_date%,2))
$puts(month_name,$select($get(month),
Jän,Feb,März,April,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez))
$if($strcmp($right($get(day),1),1),$puts(xx,),
$if($strcmp($right($get(day),1),2),$puts(xx,),
$if($strcmp($right($get(day),1),3),$puts(xx,),
$puts(xx,)))))
$puts(time_of_year,$get(day)$get(xx). $get(month_name) 20$get(year))
$if(%play_counter%,Abgespielt $if($strcmp(%play_counter%,1),
einmal','$if(%play_date%, am $get(time_of_year) um %play_time%),
%play_counter% mal$if(%play_date%,
$char(10) dee8e5Zuletzt gespielt am $get(time_of_year)) um %play_time%),Dieser Song wurde noch nicht gespielt)
$ifgreater(%play_counter%,1,,$char(10))
$char(10)$char(10)
////////////////////////////////
///////Tech Info
////////////////////////////////
$transition( ----- Tech Info -------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))
$char(10)$get(default_color)
[%__codec%]
$if(%__bitrate_dynamic%,%__bitrate_dynamic%,[%__bitrate% kbps])
$if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())
$char(10)$get(default_color)
[%_time_elapsed%/][%_length%][ -%_time_remaining%]
$if(%_isplaying%,
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',)
$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'
$char(10)$get(default_color)
$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
['['Tg']' %__replaygain_track_gain% ]['['Ag']' %__replaygain_album_gain%],
$get(tag_missing_color)Keine Replaygain Informationen)
Here trackinfo in action:
Thanks in advance.
((((( Strictly4me )))))