More > Media Center 15 (Development Ended)
IsPlaying() = IsAwesome() :D
Gl3nn:
Mark -
Part of this ended-up in my 'to-do' pile and, well... errr...
A recent board post reminded me. One more question. :)
--- Quote from: mark_h on May 04, 2010, 10:17:26 am ---The view that compares like track names has to handle various postfixes to the trackname, eg [live] etc. I simply created user fields containing expressions that strip the postfixes from the [name] field leaving just the a-z text -
Questions?
--- End quote ---
Could you share these user field expressions? I made several attempts way back then and couldn't cover them all (mostly parentheses and brackets... but some dashes too).
Thanks again!
mark_h:
Here are the rules I use to strip postfixes, eg (disc 1), [live] etc from [album] and [name]. I'm sure there is a more elegant way, but these work for me. Just add a user library field and add these expressions as the calculated field.
Album (no postfix)
=if(isequal(left([album],1),(,1),[album],if(isequal(left([album],1),[,1),[album],if(isequal(listcount([album],(),1,5),clean(ListItem([album],0,()),if(isequal(listcount([album],[),1,5),clean(ListItem([album],0,[)),[album])))
Name (no postfix)
=if(isequal(left([name],1),(,1),[name],if(isequal(left([name],1),[,1),[name],if(isequal(listcount([name],(),1,5),clean(ListItem([name],0,()),if(isequal(listcount([name],[),1,5),clean(ListItem([name],0,[)),[name])))
Enjoy,
Mark
Gl3nn:
Thanks!!!
fredele:
WOW, I just saw this post and soon realized that I could do with this technique one of my dream :
Browsing my image files who are stored aside my Music Files (Classified in Folders for each Album).
Just create a Smartlist with this :
([IsPlayingNow]=[1] or [Media Type]=[Image]) ~sort=[IsPlayingNow]-d ~limit=1,-1,[filename (path)] ~sort=[IsPlayingNow] ~limit=1,-1,[Media type] ~sort=[Filename (name)]
Same technique as above, selects the playing track and all images, keeps the images files from the same folder, reverse the sorting to keep the files where's no "IsPlayingNow" tag (keeps the images, puts away the current playing audio track ..), sorts by filename.
Now, I simply push play, and I can launch this playlist to view the booklet images and back cover ! Wonderfull ! 8)
The only problem who remains is when I press stop, I got some files showing, because I do not know how to put an IF statement in the expression, if possible, any suggestion ??
By the way, is there a thread somewhere where everybody could put his discoveries on expressions rathen than searching all over the forum ?
Thanks !
(Sorry for my approximate language ... )
mark_h:
You can put most logical statements inside smartlists using custom fields, eg
[=if(isequal(a,b))]=1
The statement inside the [] is evaluated and the result can then be tested in the smartlist.
Navigation
[0] Message Index
[*] Previous page
Go to full version