BBCODe ausgabe fehler

Hallo damit lasse ich mir eine Trackliste erstellen nur das haut nicht hin siehe aus dem foto da hat er ein Problem mit den color code könnte mir da bei einer helfen das hin zu bekommen
es ist ja auch nur bei Charts und samper der fehler bzw bei %artist% %title%

'[Spoiler='Show NFO:'][left][b]'$loop(%_folderpath%)'[size=3][color=lightblue]'$repeat(*,55)'[/color]'
$repeat( ,5)$repeat( ,$sub(20,$div($len('[COLOR="gold"]'%album%'[/COLOR]' - '[COLOR="Silver"]'CD %albumsort% out of %totaldiscs%'[/COLOR]'),2)))'[B]''[COLOR="gold"]'%album%'[/COLOR]' - '[COLOR="Silver"]'CD %albumsort% out of %totaldiscs%'[/COLOR]''[/B]'$repeat( ,$sub(74,$add($sub(25,$div($len('[COLOR="gold"]'%album%'[/COLOR]' - '[COLOR="Silver"]'CD %albumsort% out of %totaldiscs%'[/COLOR]'%),2)),$len([B]'[COLOR="silver"]'%year%'[/COLOR]' - '[COLOR="red"]'%album%'[/COLOR]' - '[COLOR="Silver"]'CD %albumsort% out of %totaldiscs%'[/COLOR]'[/B]))))
'[color=lightblue]'$repeat(*,55)'[/color][/size]'
$if($eql($regexp(%commands%,(.*)(cod','{1})(.*),$2),cod','),,$if($or($and($or($eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$eql($regexp(%commands%,(.*)(trl','{1})(.*),$2),trl',')),$and($and($or($eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$eql($regexp(%commands%,(.*)(run','{1})(.*),$2),run',')),$less(%albumsortorder%,1))),,$if($and($and($or($eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$eql($regexp(%commands%,(.*)(run','{1})(.*),$2),run',')),%albumsortorder%),,$loop(%_filename_ext%)$puts(Abitrate2,$add($get(Abitrate2),%_bitrate%))$puts(count2,$add($get(count2),1))$loopend()$loop(%_filename_ext%)$puts(AVBA,$get(AVBA)$if($eql($regexp(%commands%,(.*)(vbra','{1})(.*),$2),vbra','),vbra',',))$loopend()$if($and($or($or($eql($regexp($get(AVBA),(.*)(vbra','{1})(.*),$2),vbra','),$eql($regexp(%commands%,(.*)(bit','{1})(.*),$2),bit',')),$and($eql($regexp(%commands%,(.*)(vbr','{1})(.*),$2),vbr','),$neql($div($get(Abitrate2),$get(count2)),%_bitrate%))),$neql($regexp(%commands%,(.*)(oye','{1})(.*),$2),oye',')),$if($or($or($or($or($or($eql($regexp(%commands%,(.*)(album','{1})(.*),$2),album','),$eql($regexp(%commands%,(.*)(maxi','{1})(.*),$2),maxi',')),$eql($regexp(%commands%,(.*)(single','{1})(.*),$2),single',')),$eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook',')),$eql($regexp(%commands%,(.*)(promo','{1})(.*),$2),promo',')),$eql($regexp(%commands%,(.*)(soundtrack','{1})(.*),$2),soundtrack',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace(%artist%,_, ,'[','(',']',')',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RTitle),80,$left($get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RTitle),80))))$iflonger($get(RTitle),$if($eql($left($mid($get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RTitle),80,80),1), ),$mid($regexp($get(RTitle),(.{82}),$1...),80,80),$mid($regexp($get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RTitle),80,80),1), ),$mid($get(RTitle),44,80),$mid($get(RTitle),80,80)))$repeat( ,$sub(80,$len($iflonger($get(RTitle),$if($eql($left($mid($get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RTitle),80,80),1), ),$mid($regexp($get(RTitle),(.{82}),$1...),44,80),$mid($regexp($get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RTitle),80,80),1), ),$mid($get(RTitle),44,80),$mid($get(RTitle),80,80)))))),$left($get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RTitle),80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(sampler','{1})(.*),$2),sampler','),$eql($regexp(%commands%,(.*)(sva','{1})(.*),$2),sva',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RPArtist) - $get(RTitle),80,$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80))))  $iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{82}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),44,80),$mid($get(RPArtist) - $get(RTitle),80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),44,80),$mid($get(RPArtist) - $get(RTitle),80,80)))))),$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$num(%track%,3) '-' $iflonger($get(RPArtist) - $get(RTitle),80,$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80)))) $iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),83,82),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{80}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{79}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),80,80),$mid($get(RPArtist) - $get(RTitle),80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),83,82),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{80}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{79}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),80,80),$mid($get(RPArtist) - $get(RTitle),80,80)))))),$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80))))  )
$loopend(),)))$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),, ),$loop(%_filename_ext%)$puts(Abitrate2,$add($get(Abitrate2),%_bitrate%))$puts(count2,$add($get(count2),1))$loopend()$loop(%_filename_ext%)$puts(AVBA,$get(AVBA)$if($eql($regexp(%commands%,(.*)(vbra','{1})(.*),$2),vbra','),vbra',',))$loopend()$if($and($or($or($eql($regexp($get(AVBA),(.*)(vbra','{1})(.*),$2),vbra','),$eql($regexp(%commands%,(.*)(bit','{1})(.*),$2),bit',')),$and($eql($regexp(%commands%,(.*)(vbr','{1})(.*),$2),vbr','),$neql($div($get(Abitrate2),$get(count2)),%_bitrate%))),$eql($regexp(%commands%,(.*)(oye','{1})(.*),$2),oye',')), $if($or($or($or($or($or($eql($regexp(%commands%,(.*)(album','{1})(.*),$2),album','),$eql($regexp(%commands%,(.*)(maxi','{1})(.*),$2),maxi',')),$eql($regexp(%commands%,(.*)(single','{1})(.*),$2),single',')),$eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook',')),$eql($regexp(%commands%,(.*)(promo','{1})(.*),$2),promo',')),$eql($regexp(%commands%,(.*)(soundtrack','{1})(.*),$2),soundtrack',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RTitle)[ '('%origyear%')'],80,$left($get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RTitle)[ '('%origyear%')'],80))))  
$iflonger($get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RTitle)[ '('%origyear%')'],44,80),$mid($get(RTitle)[ '('%origyear%')'],80,80)))$repeat( ,$sub(80,$len($iflonger($get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RTitle)[ '('%origyear%')'],44,80),$mid($get(RTitle)[ '('%origyear%')'],80,80)))))),$left($get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RTitle)[ '('%origyear%')'],80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(sampler','{1})(.*),$2),sampler','),$eql($regexp(%commands%,(.*)(sva','{1})(.*),$2),sva',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],44,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))))),$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$num(%track%,3) '-' $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),83,82),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{80}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{79}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),83,82),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{80}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{79}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))))),$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  )
$loopend(),)))$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),, ),$loop(%_filename_ext%)$puts(Abitrate2,$add($get(Abitrate2),%_bitrate%))$puts(count2,$add($get(count2),1))$loopend()$loop(%_filename_ext%)$puts(AVBA,$get(AVBA)$if($eql($regexp(%commands%,(.*)(vbra','{1})(.*),$2),vbra','),vbra',',))$loopend()$if($and($and($eql($regexp(%commands%,(.*)(oye','{1})(.*),$2),oye','),$neql($regexp($get(AVBA),(.*)(vbra','{1})(.*),$2),vbra',')),$neql($regexp(%commands%,(.*)(bit','{1})(.*),$2),bit',')), $if($or($or($or($or($or($eql($regexp(%commands%,(.*)(album','{1})(.*),$2),album','),$eql($regexp(%commands%,(.*)(maxi','{1})(.*),$2),maxi',')),$eql($regexp(%commands%,(.*)(single','{1})(.*),$2),single',')),$eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook',')),$eql($regexp(%commands%,(.*)(promo','{1})(.*),$2),promo',')),$eql($regexp(%commands%,(.*)(soundtrack','{1})(.*),$2),soundtrack',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' 
$iflonger($get(RTitle)[ '('%origyear%')'],80,$left($get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RTitle)[ '('%origyear%')'],80))))  $iflonger($get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),99,98),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{96}),$1...),80,80),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{95}),$1...),80,80)),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RTitle)[ '('%origyear%')'],51,80),$mid($get(RTitle)[ '('%origyear%')'],80,80)))$repeat( ,$sub(80,$len($iflonger($get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],50,80),1), ),99,98),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],50,80),1), ),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{96}),$1...),51,80),$mid($regexp($get(RTitle)[ '('%origyear%')'],(.{95}),$1...),50,80)),$if($eql($left($mid($get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RTitle)[ '('%origyear%')'],51,80),$mid($get(RTitle)[ '('%origyear%')'],50,80))))))      ,$left($get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RTitle)[ '('%origyear%')'],80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(sampler','{1})(.*),$2),sampler','),$eql($regexp(%commands%,(.*)(sva','{1})(.*),$2),sva',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],44,80),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,80)))))),$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$num(%track%,3) '-' $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],48,$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],48)$repeat( ,$sub(48,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],48))))  $iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),97,96),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{94}),$1...),50,48),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{93}),$1...),80,48)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],50,48),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,48)))$repeat( ,$sub(48,$len($iflonger($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),97,96),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{94}),$1...),50,48),$mid($regexp($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],(.{93}),$1...),80,48)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],50,48),$mid($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],80,48)))))),$left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],48)$repeat( ,$sub(48,$len($left($get(RPArtist) - $get(RTitle)[ '('%origyear%')'],48)))) )
$loopend(),)))$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),, ),$if($or($or($or($or($or($eql($regexp(%commands%,(.*)(album','{1})(.*),$2),album','),$eql($regexp(%commands%,(.*)(maxi','{1})(.*),$2),maxi',')),$eql($regexp(%commands%,(.*)(single','{1})(.*),$2),single',')),$eql($regexp(%commands%,(.*)(audiobook','{1})(.*),$2),audiobook',')),$eql($regexp(%commands%,(.*)(promo','{1})(.*),$2),promo',')),$eql($regexp(%commands%,(.*)(soundtrack','{1})(.*),$2),soundtrack',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RTitle),80,$left($get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RTitle),80))))  $iflonger($get(RTitle),$if($eql($left($mid($get(RTitle),50,80),1), ),99,98),$if($eql($left($mid($get(RTitle),50,80),1), ),$mid($regexp($get(RTitle),(.{96}),$1...),51,80),$mid($regexp($get(RTitle),(.{95}),$1...),50,80)),$if($eql($left($mid($get(RTitle),50,80),1), ),$mid($get(RTitle),51,80),$mid($get(RTitle),50,80)))$repeat( ,$sub(80,$len($iflonger($get(RTitle),$if($eql($left($mid($get(RTitle),50,80),1), ),99,98),$if($eql($left($mid($get(RTitle),50,80),1), ),$mid($regexp($get(RTitle),(.{96}),$1...),51,80),$mid($regexp($get(RTitle),(.{95}),$1...),50,80)),$if($eql($left($mid($get(RTitle),50,80),1), ),$mid($get(RTitle),51,80),$mid($get(RTitle),50,80))))))      ,$left($get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RTitle),80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(sampler','{1})(.*),$2),sampler','),$eql($regexp(%commands%,(.*)(sva','{1})(.*),$2),sva',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$ifgreater(%track%,99, , )$num(%track%,2)$repeat( ,$sub(8,$len(%_length%)))'.' (%_length%) '-' $iflonger($get(RPArtist) - $get(RTitle),80,$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80))))  $iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{82}),$1...),80,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),44,80),$mid($get(RPArtist) - $get(RTitle),80,80)))$repeat( ,$sub(80,$len($iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),85,84),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{82}),$1...),44,80),$mid($regexp($get(RPArtist) - $get(RTitle),(.{81}),$1...),80,80)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,80),1), ),$mid($get(RPArtist) - $get(RTitle),44,80),$mid($get(RPArtist) - $get(RTitle),80,80)))))),$left($get(RPArtist) - $get(RTitle),80)$repeat( ,$sub(80,$len($left($get(RPArtist) - $get(RTitle),80))))  )
$loopend(),$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),$loop(%album%%albumsortorder%%track%)$puts(RPArtist,$replace('[color=#ff9900]'%artist%'[/color]',_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$puts(RTitle,$replace($if($eql($regexp(%commands%,(.*)(soa','{1})(.*),$2),soa','),'[color=#ffff99]'%title%'[/color]'[ '('%origartist%')'],'[color=#ffff99]'%title%'[/color]'),_, ,'[','[',']',']',º,Grad,<,,>,,\u2013,-,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss))$num(%track%,3) '-' $iflonger($get(RPArtist) - $get(RTitle),48,$left($get(RPArtist) - $get(RTitle),48)$repeat( ,$sub(48,$len($left($get(RPArtist) - $get(RTitle),48))))  $iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),97,96),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{94}),$1...),50,48),$mid($regexp($get(RPArtist) - $get(RTitle),(.{93}),$1...),80,48)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($get(RPArtist) - $get(RTitle),50,48),$mid($get(RPArtist) - $get(RTitle),80,48)))$repeat( ,$sub(48,$len($iflonger($get(RPArtist) - $get(RTitle),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),97,96),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($regexp($get(RPArtist) - $get(RTitle),(.{94}),$1...),50,48),$mid($regexp($get(RPArtist) - $get(RTitle),(.{93}),$1...),80,48)),$if($eql($left($mid($get(RPArtist) - $get(RTitle),80,48),1), ),$mid($get(RPArtist) - $get(RTitle),50,48),$mid($get(RPArtist) - $get(RTitle),80,48)))))),$left($get(RPArtist) - $get(RTitle),48)$repeat( ,$sub(48,$len($left($get(RPArtist) - $get(RTitle),48))))  )
$loopend(),)))$if($or($eql($regexp(%commands%,(.*)(charts','{1})(.*),$2),charts','),$eql($regexp(%commands%,(.*)(mix','{1})(.*),$2),mix',')),, )))))))
$loopend()'[/b][/left][/Spoiler]'


Hmm, das ist wohl der extremste MTE code, den ich je gesehen habe.
Wenn du konsequent alle textuellen Bestandteile in einfache Apostrophzeichen einklammerst, dann wird der MTE code übersichtlicher.
Benutzt du einen Editor, der die Syntax der Mp3tag MTE Sprache kolorieren kann?

DD.20160410.0859.CEST

Nein ich benutze kein Editor der den Syntax kolorieren kann.
Ja ich weiß ist sehr lang der code und ich nutze notepad;)

das ding ist ja ich muss den code ja über comands laufen lassen
für verdienende Sachen wie Album,Sampler,Charts etc
wüßte ich ein einfachen weg würde ich auch diesen machen das der code übersichtlicher ist


Für den Editor "Notepad++" gibt es eine Sprachdatei für Mp3tag.

Kannst du Beispiele zeigen, was in dem selbst definierten Tagfeld COMMANDS enthalten ist?
Zu welchem Zeitpunkt wird dieses Tagfeld gefüllt?

Eine Reihung von Tagfeld-Inhalten wie in dieser Schleifen-Sortier-Anweisung ...
$loop(%album%%albumsortorder%%track%)
... kann Ergebnisse liefern, die unerwünscht sind.
Die Sortierung wird nur dann stimmen, wenn der gegebene Inhalt aus jedem Tagfeld mit z. B. Leerzeichen rechtsbündig so weit aufgefüllt wird, dass alle Werte eines Tagfeldes dieselbe Länge aufweisen;
right padding bei Text, left padding bei Zahlen.
Vielleicht so ...

$loop($left(%ALBUM%$repeat($char(32),40),40)$left(%ALBUMSORTORDER%$repeat($char(32),40),40)$right(%TRACK%,$repeat($char(32),5),5)) ... $loopend oder $loop($left(%ALBUM%$repeat('~',40),40)$left(%ALBUMSORTORDER%$repeat('~',40),40)$right(%TRACK%$repeat('0',4),4)) ... $loopend

DD.20160410.1246.CEST

Das währe meine COMMANDS

als erste drücke ich immer eins von den den tagge ich das normal und den danach erstelle ich mir meine text datei mit den bbcode

da mit soll die aus gabe bestimmt werden was ist zb Track nummer Time Titel bei Album
und bei Sampler oder Charts st das so Track nummer Kuinstler Time Titel

Commands#Commands_&Disco

[#0]
T=5
F=COMMANDS
1=album,discos,albumdot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,ttr,salbums,nul,s
pc,noy,ndir,subf,m3u,spl,nfo,sfv,
Commands#Commands_&OST

[#0]
T=5
F=COMMANDS
1=soundtrack,soundtrackdot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,#com102#,ttr,s
samplers,nul,spc,noy,ndir,subf,m3u,spl,nfo,sfv,

Commands#Commands_&Sampler

[#0]
T=5
F=COMMANDS
1=sampler,samplerdot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,#com102#,ttr,ssample
rs,nul,spc,nbr,noy,ndir,subf,m3u,spl,nfo,sfv,
Commands#Commands_Alben

[#0]
T=5
F=COMMANDS
1=album,albumdot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,ttr,salbums,nul,spc,noy,
ndir,subf,m3u,spl,nfo,sfv,
Commands#Commands_Charts

[#0]
T=5
F=COMMANDS
1=charts,chartsdot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,#com102#,ttr,ssamplers
,nul,spc,noy,ndir,subf,m3u,plla,nfo,sfv,
Commands#Commands_Maxi_Single
[#0]
T=5
F=COMMANDS
1=single,maxidot,cd,nod,ncdm,caps,edu,low2,nul2,rom,vbr,ttr,smaxis,nul,spc,noy,n
dir,subf,m3u,spl,nfo,sfv,

weiß keiner ein rat für mich

Vielleicht würde es helfen, wenn du eingrenzen könntest, mit welcher Ausgangsdatei welcher Code-Schnipsel welchen falschen Output erzeugt und dann die Frage konkret zu dieser Konstellation stellen.