Music Banter

Music Banter (https://www.musicbanter.com/)
-   The Lounge (https://www.musicbanter.com/lounge/)
-   -   Foobar2000 - Support and Discussions (https://www.musicbanter.com/lounge/47287-foobar2000-support-discussions.html)

Guybrush 01-30-2010 06:56 AM

Foobar2000 - Support and Discussions
 
I know I'm not the only one who's learning Foobar2000 these days. It's not super easy to those who know nothing of scripting and so on, so let's get our heads together in this thread and see if we can solve our problems. :)

If there's anything, ask away!


I installed Foobar only yesterday, but it is coming together quite nicely. It takes a little while, but I'm figuring stuff out.

However, there are a few problems. Number 1 is that I have a problem with playlist sorting. I have a library tree which is set up with different filters or queries if you want. One shows all Mixed Artists Compilation albums (%album artist% IS Various artists). A problem I had when I first did this was that it was sorting by artist, then albums. However, I managed to sort out that by fiddling with the playlist sorting rules. I rewrote it to this :

Code:

$if2(%album artist%,<Various Artists>) [ - %album%]
Now I wanted to add another level to the playlist sorting hierarchy, one for disc number since many albums are on multiple discs - especially compilations.

I added a line so that my playlist sorting follows this script :

Code:

$if2(%album artist%,<Various Artists>) [ - %album%]
$if(%disc number% ISNOT empty,CD %disc number%)

This works beautifully :) Check out the result here!

However, the problem comes when I'm looking at albums which do not have multiple discs. The level of the sorting hierarchy is still there, but since it has no information to sort by, it shows up as just a line basically.

You can see the problem here. Check out the top album - under the line with the band and the album title, there's another line. I would like to be able to have a conditional sorting hierarchy where that line doesn't show if the %disc number% tag is empty!

Can anyone help?

Guybrush 01-30-2010 07:13 AM

Ah, nevermind!

I just did this all in one line :

Code:

$if2(%album artist%,<Various Artists>) [ - %album%] $if(%disc number% ISNOT empty,- CD %disc number%)
and it works fine :p:

noise 01-30-2010 07:19 AM

edit - too late! anyway i'll leave my post:

as far as i know, the existence of a line cannot be conditional.

your best bet is to put it all on one line.

by the way, you can also use this syntax which will return the first value if the tag is present, and the second (in this case null) value if it is empty:

$if(%disc number%,CD %disc number%,)

here is the script i use, and the result for multi-disc albums

Code:

$puts(sep,$transition(' '$trim($repeat('―',2)),$rgb(200,200,200),$rgb(200,200,200)))
$rgb(60,100,60)%album artist%
$get(sep)
$rgb(164,180,134) '['%date%'] '

$puts(normal,$rgb(60,100,60))
$puts(light,$rgb(164,180,134))
$puts(bright,$rgb(205,135,52))

$get(normal)
$replace(%album%,
'(',$get(light)'(',
')',')'$get(normal),
'[',$get(bright)'[',
']',']'$get(normal),
'EP',$get(bright)'[EP]',
'12"',$get(bright)'[12"]',
'7"',$get(bright)'[7"]')

$if(%discnumber%,
$get(sep)$rgb(0,0,255) Disc %discnumber%
,)

http://imgkk.com/t/5kiqBt.png

Guybrush 01-30-2010 07:46 AM

Strange, I tried out your script, but it splits up my compilation albums. I can't see why as it organizes by %album artist% first which is Various Artists on all my compilation albums :confused:

edit :

Ah, nevermind. It was the date tag!

edit 2 :

By the way, can I have conditions in my library tree?

Compilation albums are like this :

Code:

%album%\Disc %disc number%
which shows like this :
  • 100 Disco Hits
    • Disc 1
    • Disc 2
    • Disc 3
    • Disc 4
    • Disc 5

However, if the %disc number% is empty, this happens :
  • Absolute Christmas
    • Disc ?

I'd like it to be conditional so that CDs only come up if the %disc number% tag has a value. It's not a biggie, but why not? :D

edit again :

Sorry, I'm figuring out stuff on my own again .. :p

Code:

%album%\$if(%disc number% PRESENT, Disc %disc number%)
.. works nicely!

Guybrush 01-30-2010 08:24 AM

I've run into another problem which I can't figure out. All my soundtracks and compilations are sorting nicely, but with one exception. Blade Runner just won't and I can't for the life of me figure out why :confused:

Screenshot

Any ideas?

noise 01-30-2010 08:36 AM

ok firstly, you can use square brackets [] to make things only show up if they are present

so [Disc %disc number%] will only appear if the tag is filled.

for sorting on your blade runner - it might have to do with the option in the Library Tree dialog where you can tell the component how to sort files when it sends them to the playlist.

Guybrush 01-30-2010 08:41 AM

Quote:

Originally Posted by noise (Post 818774)
so [Disc %disc number%] will only appear if the tag is filled.

Ah, nice tip .. Thanks again :)

noise 01-30-2010 08:59 AM

did you fix the blade runner issue?

sometimes if i just remove the tag then fill it out again it will fix little issues like that...

Guybrush 01-30-2010 09:26 AM

Quote:

Originally Posted by noise (Post 818788)
did you fix the blade runner issue?

sometimes if i just remove the tag then fill it out again it will fix little issues like that...

No, I couldn't find the cause of it. I tried removing nearly all the tags and so on and then retag, but - same issue. I also noticed conflicting album arts could perhaps cause something like that, so I removed that as well and so on .. What I did is I gave up and redownloaded the whole thing. :p:

noise 01-30-2010 11:28 AM

ok now i have a question for you :D

how do you keep your comps and soundtracks from showing up in your Albums/EPs/Singles area?


All times are GMT -6. The time now is 06:05 PM.


© 2003-2024 Advameg, Inc.