INTERACT FORUM
More => Old Versions => JRiver Media Center 30 for Linux => Topic started by: cochinada on February 06, 2024, 03:07:38 pm
-
Hello good people!
My Standard View is not working as I designed it.
This is what I defined:
(https://i.ibb.co/wRbFRK0/views.jpg) (https://ibb.co/kxrsxhH)
These are the respective Expressions and the View I get for each step:
1)
File Group Location (OK)
(https://i.ibb.co/WBcZYwV/1.jpg) (https://ibb.co/qmRKPfJ)
2)
Expression (OK)
if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,2), filefolder(,1))),
Extract(6, Mid([FileName (path)], 46, -1), //, //)
)
(https://i.ibb.co/Prj9P3Q/2.jpg) (https://ibb.co/HK4xb1d)
3)
Expression (NOT OK!!!)
if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,2), filefolder(,1)))
)
(https://i.ibb.co/t8G8jqL/3.jpg) (https://ibb.co/jgNg0yJ)
what is this nonsense Play Expression Expression with a 0 and a 1 instead of the expected Album names???
4)
Expression (NOT OK!!!)
if(IsEqual([File Group Location], Various Composers, 8 ),
filefolder()),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,1), filefolder()))
)
(https://i.ibb.co/Kx8xrR7/4.jpg) (https://ibb.co/hFTFmhH)
Again I have Play Expression with a 0...
5)
Expression (NOT OK!!!)
filefolder()
(https://i.ibb.co/fkPPNrd/5.jpg) (https://ibb.co/N9HHNW2)
finally I should see here only the CDs belonging to "Brahms - The Masterworks" but I see other albums mixed as well.
My entire disc structure for Classical Music has a maximum of 5 sub-folders before the audio files.
All the files are organized similar to one of these examples below:
a)
[A-D]/Bach, Johann Sebastian/Complete Works Haenssler/VOL 01 Kantaten/CD2 - Cantatas BWV 4-6
b)
[E-M]/Liszt, Franz/Complete Piano Music - Leslie Howard/Vol 01 - The Waltzes
c)
[E-M]/Liszt, Franz/Bryon Janis Plays Lizst Concertos & Encores
d)
(Various Composers)/[Jordi Savall] CHRISTOPHORUS COLUMBUS - Paraísos Perdidos (SACD)/Disc 1/5.0
e)
(Various Composers)/[Ensemble Organum] Carmina Burana - Le Mystère de la Passion/CD1
f)
(Various Composers)/[Anonymous 4]/la bele marie
NOTE:
All multiple albums or compilations have always a Disc#. The only cases where Disc# is empty are for single Albums like in c) and f)
The path before the File Group Location on disc is common to all:
(https://i.ibb.co/THfVcQc/estructura.jpg) (https://imgbb.com/)
-
3) Expression (NOT OK!!!)
if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,2), filefolder(,1)))
This is caused by an extra space after the "isequal " - because of this, it's not parsed as a valid function.
4) Expression (NOT OK!!!)
if(IsEqual([File Group Location], Various Composers, 8 ),
filefolder()),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,1), filefolder()))
)
There's again an extra space, and also an extra parenthesis on the second line. The fixed expression is:
if(IsEqual([File Group Location], Various Composers, 8 ), filefolder(),
if(IsEmpty([Disc #]), [Album],
if(IsEqual(filefolder(,3 ), [Composer], 8 ), filefolder(,1),
filefolder())))
Boa sorte!
-
You are a genius Sir! I can't tell you how much time I have looked at this but not in one million Years I would imagine a space after the IsEqual was so crucial!
I find it very hard to find all the matching parentheses which is likely why I made the other mistake as well.
Everything looks great now but it's very late here and I need to do some checks to validate everything tomorrow with time.
Thank you so much!!!
I see you can also speak Portuguese ;D
-
You're welcome, há que ser solidário com os compatriotas ;)
Zelda (https://yabb.jriver.com/interact/index.php/topic,125975.0.html)'s syntax highlighting really helps to find these issues.
-
Não esperava encontrar um compatriota por aqui :D
This ZELDA is completely new to me. I will definitely try to play with it! Does it work with Linux?
Many thanks again!
-
It's Windows only. Maybe it works with Mono under Linux, but I haven't tested.
-
Hi!
I'm reviewing many Albums and would like to do a slight modification but am not exactly sure how to do it.
I want to modify this expression to show me "CD1 - <album title>" instead of plain "CD1":
if(IsEqual([File Group Location], Various Composers, 8),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3), Various Composers, 8), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual(filefolder(,3), [Composer], 8), filefolder(,2), filefolder(,1)))
)
Consider this example:
filefolder(,2) filefolder(,1) filefolder()
(Various Composers) [Ensemble Organum] Carmina Burana - Le Mystère de la Passion CD1
(Various Composers) [Ensemble Organum] Carmina Burana - Le Mystère de la Passion CD2
(Various Composers) [RICHTER] Complete Decca-Philips-DG Recordings CD01
(Various Composers) [RICHTER] Complete Decca-Philips-DG Recordings CD02
So, instead of filefolder() which can sometimes be equal to "CD1" something like filefolder()&[Album] ?
I don't know if & is the equivalent to concatenation of strings...
Just seeing CD1, CD2, etc doesn't give me any clue about what the CDs are. Some could be Symphonies, others Concertos, you get the picture...
-
It's just "filefolder() - [Album]". Fields and function results are just replaced into the string.
-
Thanks. With or without " ?
-
Do you want them there? :)
-
Nope ;D