IPB

Welcome Guest ( Log In | Register )

14 Pages V  « < 12 13 14  
Reply to this topicStart new topic
SimPlaylist (foo_simplaylist), Playlist view with album art
BenB
post Apr 28 2013, 21:53
Post #326





Group: Members
Posts: 328
Joined: 17-April 12
Member No.: 98921



There must be both an opening and closing bracket for SimPlaylist to dim the tag content between them. (The brackets' type doesn't have to match, however). That's why "sunn O)))" displays undimmed when simply using %album artist% instead of a $replace() script.

QUOTE (anamorphic @ Apr 28 2013, 13:36) *
$replace(%album%,'(','>>(',')',')<<','[','>>[',']',']<<','{','>>{','}','}<<')

The problem with this is that it doesn't take into consideration constructions such as "sunn O)))". Instead of interpreting << as highlighting the preceding bracket, it's being interpreted as dimming the following bracket. This is understandable as there is no preceding >>.

@frogworth:

Try this instead of your code:
CODE
>>$replace(%album artist%,'(','<<>>(<<>>',')','<<>>)<<>>','[','<<>>[<<>>',']','<<>>]<<>>','{','<<>>{<<>>','}','<<>>}<<>>')<< - >>'['%date%[%index%]']'<< -
>>$replace(%album%,'(','<<>>(<<>>',')','<<>>)<<>>','[','<<>>[<<>>',']','<<>>]<<>>','{','<<>>{<<>>','}','<<>>}<<>>')<<


It worked in my experimenting. It's basically an all-encompassing attempt to prevent dimming regardless of bracket type, combination or occurrence. Setting conditions with $if() with the code is inadvisable.

EDIT:

Must have had a derp moment as this code worked for me and I posted the longer version instead of this one:
CODE
>>$replace(%album artist% - '['%date%[-%index%]']' - %album%,'(','<<>>(<<>>',')','<<>>)<<>>','[','<<>>[<<>>',']','<<>>]<<>>','{','<<>>{<<>>','}','<<>>}<<>>')<<


This post has been edited by BenB: Apr 28 2013, 22:52


--------------------
This signature apparently isn't too long.
Go to the top of the page
+Quote Post
anamorphic
post Apr 28 2013, 23:35
Post #327





Group: Members
Posts: 6
Joined: 21-February 13
Member No.: 106789



QUOTE (BenB @ Apr 29 2013, 09:53) *
That's why "sunn O)))" displays undimmed when simply using %album artist% instead of a $replace() script.

Ah yes, my mistake. My config was replacing everything except %album artist%. Just realized.

Your code looks pretty neat though, cheers for that. Now there is a better solution, I expect the author to show up and suddenly remove this feature </jokingly> rolleyes.gif

This post has been edited by anamorphic: Apr 28 2013, 23:41
Go to the top of the page
+Quote Post
frogworth
post Apr 30 2013, 02:34
Post #328





Group: Members
Posts: 159
Joined: 30-December 09
Member No.: 76511



QUOTE (BenB @ Apr 29 2013, 07:53) *
EDIT:

Must have had a derp moment as this code worked for me and I posted the longer version instead of this one:
CODE
>>$replace(%album artist% - '['%date%[-%index%]']' - %album%,'(','<<>>(<<>>',')','<<>>)<<>>','[','<<>>[<<>>',']','<<>>]<<>>','{','<<>>{<<>>','}','<<>>}<<>>')<<


Thanks BenB, that's amazing! As for my if statements, I had them there because somehow at some point I had assumed that I needed to be able to tell that an album has different artists from album artists. Apparently not necessary, maybe never was. This is certainly a lot lovelier - although I've changed the colors to just default black for highlight, as I suddenly had a lot of blue on my screen!

Nice work, and thanks also to anamorphic for your help!
Go to the top of the page
+Quote Post

14 Pages V  « < 12 13 14
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th May 2013 - 17:23