IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Album List exclude genre, Seperate lists
sonvolt
post Aug 15 2009, 02:22
Post #1





Group: Members
Posts: 132
Joined: 14-August 09
From: Edinburgh
Member No.: 72310



Hi very new here , tho decided on using Foobar a while back and just recently ripped my CD's and now customizing ..

Use Columns UI , want to seperate album list views Classical/Other

Using following view script to show list only containing classical works fine

$if($not($strcmp(%genre%,Classical)),,%album artist% %album%)

What do I need for showing everything except genre classical my efforts to date still show the genre

$if($not($strcmp([%genre%,Classical))],,$swapprefix(%album artist%))- ['['%date%']' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

Would appreciate any pointers "while i find my feet"
Go to the top of the page
+Quote Post
nc30
post Aug 15 2009, 02:44
Post #2





Group: Members
Posts: 2
Joined: 30-April 08
Member No.: 53191



You can make an autoplaylist. Library > Search > and make a query like: NOT %genre% IS Classical. Then click on the ... and Create Autoplaylist. This will create a playlist with all the genres except classical.
Go to the top of the page
+Quote Post
sonvolt
post Aug 15 2009, 02:52
Post #3





Group: Members
Posts: 132
Joined: 14-August 09
From: Edinburgh
Member No.: 72310



QUOTE (nc30 @ Aug 15 2009, 01:44) *
You can make an autoplaylist. Library > Search > and make a query like: NOT %genre% IS Classical. Then click on the ... and Create Autoplaylist. This will create a playlist with all the genres except classical.

Cheers but I Want it family friendly so wanting it via album list panel on Columns UI
Go to the top of the page
+Quote Post
sonvolt
post Aug 15 2009, 19:08
Post #4





Group: Members
Posts: 132
Joined: 14-August 09
From: Edinburgh
Member No.: 72310




After lots of failed attempts this seems to do the trick.. It's the syntax I have a bit of a problem withOh well practice needed I suppose.

$if($strstr(%genre%,Classical),,$swapprefix(%album artist%) - ['['%date%']' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%)
Go to the top of the page
+Quote Post
shakey_snake
post Aug 15 2009, 19:46
Post #5





Group: FB2K Moderator
Posts: 4322
Joined: 1-November 06
From: Cincinnati
Member No.: 37036



You could also just do something like this.

$if($stricmp(%genre%,Classical),zzClassical|)$swapprefix(%album artist%) - ['['%date%']' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%


Then classical will just be placed in it's own category at the bottom.

note: while $strsrt() might work in your above title formatting, $strcmp() (string compare) or $stricmp() (string case-insensitive compare) is more appropriate.

This post has been edited by shakey_snake: Aug 15 2009, 19:50


--------------------
elevatorladylevitateme
Go to the top of the page
+Quote Post
sonvolt
post Aug 16 2009, 15:24
Post #6





Group: Members
Posts: 132
Joined: 14-August 09
From: Edinburgh
Member No.: 72310



QUOTE (shakey_snake @ Aug 15 2009, 18:46) *
You could also just do something like this.

$if($stricmp(%genre%,Classical),zzClassical|)$swapprefix(%album artist%) - ['['%date%']' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%


Then classical will just be placed in it's own category at the bottom.

note: while $strsrt() might work in your above title formatting, $strcmp() (string compare) or $stricmp() (string case-insensitive compare) is more appropriate.


Cheers I like that... biggrin.gif
Go to the top of the page
+Quote Post

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: 22nd July 2014 - 14:34