Syntax for playlist Group scheme, Album + Date ?. |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Syntax for playlist Group scheme, Album + Date ?. |
Apr 3 2012, 06:55
Post
#1
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
I display my music within all playlists by grouping by %album%
I would like to display/croup by "album" and "year" problem is with albums that have more than one year in the tags, like various albums, these then displayed fractured, i.e. by tracks with the same album name. very untidy and annoying. Can someone help me with the syntax to create a way of displaying/grouping by "albums" with the "year" and to ignore the year if there are multiple years in the tags ?. Thank you. This post has been edited by tagtypedisplay: Apr 3 2012, 06:57 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 3 2012, 08:18
Post
#2
|
|
![]() Group: Members (Donating) Posts: 765 Joined: 12-March 05 From: Kiel, Germany Member No.: 20561 |
I'd use an additional tag RELEASE DATE, which should the same across all tracks of a VA album, and then group by $if3(%RELEASE DATE%,%YEAR%,%DATE%) or similar.
This post has been edited by Kohlrabi: Apr 3 2012, 08:19 -------------------- Audiophiles live in constant fear of jitter.
|
|
|
|
Apr 3 2012, 08:44
Post
#3
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
I'd use an additional tag RELEASE DATE, which should the same across all tracks of a VA album, and then group by $if3(%RELEASE DATE%,%YEAR%,%DATE%) or similar. Thanks for your reply. I really don't want to create another field in my big collection. Besides the various albums which I have compiled I have also compiled my best of for a single artist, So I'd really prefer the group scheme to ignore the "year" if there's more than one year within a album. to display for intact album; -----------"Lou Reed Did LSD" (1969)------------------------------------------- and for various or best of; -----------"Various Album or Best Of Shyte Artist" ()-------------------------- how would I do that ?. thanks -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 3 2012, 08:45
Post
#4
|
|
![]() Group: Members Posts: 3291 Joined: 27-January 05 From: England Member No.: 19379 |
that's not possible.
|
|
|
|
Apr 3 2012, 08:55
Post
#5
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
that's not possible. ok, so there's no way of saying... [If, Year is more than 1, display (), else, (xxxx)] -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 3 2012, 09:00
Post
#6
|
|
![]() Group: Members Posts: 3291 Joined: 27-January 05 From: England Member No.: 19379 |
title formatting works on a per track basis so it would be possible to check if it has multiple values.
but you're wanting to look at the dates of all tracks within an album and that's the part that isn't possible. |
|
|
|
Apr 3 2012, 13:11
Post
#7
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
title formatting works on a per track basis so it would be possible to check if it has multiple values. aha, so it could be possible.but you're wanting to look at the dates of all tracks within an album and that's the part that isn't possible. but but, If it scans each track then it should be possible to manipulate the scanned data with the correct syntax,and here I thought that anything was possible with 0's and 1's. Thanks for all your input, I'm in denial about this..... "Scotty there MUST be a way" -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 3 2012, 14:58
Post
#8
|
|
![]() Group: Members Posts: 149 Joined: 9-October 08 Member No.: 59818 |
You can use a lot of things as a switch (marked with purple) to toggle the date display. This one checks whether ALBUM ARTIST is 'VA'.
$if($stricmp(%album artist%,VA),%album%,%album% '('%date%')') If you don't want to use that tag (although it would be really efficient) and you have all of your albums tagged as 'Best of ...', you can also validate that instead: $if($stricmp($left(%album%,8),'Best of ',%album%,%album% '('%date%')') This post has been edited by Daeron: Apr 3 2012, 15:06 |
|
|
|
Apr 4 2012, 03:40
Post
#9
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
You can use a lot of things as a switch (marked with purple) to toggle the date display. This one checks whether ALBUM ARTIST is 'VA'. $if($stricmp(%album artist%,VA),%album%,%album% '('%date%')') If you don't want to use that tag (although it would be really efficient) and you have all of your albums tagged as 'Best of ...', you can also validate that instead: $if($stricmp($left(%album%,8),'Best of ',%album%,%album% '('%date%')') Thank you for the explanation and for giving me the correct syntax, I can now "see" how I can manipulate those two If clauses. -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 4 2012, 08:35
Post
#10
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
Ok, I finally plagiarized and hacked this;
$if($stricmp($directory(%path%),various),$directory(%path%,2) - $caps($directory(%path%)),$if(%album artist%,$if($stricmp(%album artist%,%artist%),$if2(%album%,$directory_path(%path%)),$if(%compilation%,%album% '[by]' %album artist%,%album artist%)),$if2(%album%,$directory(%path%)))) EDIT; I simplified it to this; $if($stricmp($directory(%path%),various),$directory(%path%,2) - $caps($directory(%path%)),$if(%album artist%,$if($stricmp(%album artist%,%artist%),$if2(%album%,$directory_path(%path%)))))) it groups my Various just fine with no year, but no year after intact albums either. Can someone be so kind as to try and decipher why it doesn't display the year with my intact albums. I'm really lost in this syntax... This post has been edited by tagtypedisplay: Apr 4 2012, 08:58 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 4 2012, 09:04
Post
#11
|
|
|
Group: Super Moderator Posts: 4355 Joined: 23-June 06 Member No.: 32180 |
I have no idea what that’s meant to be, but it’s no wonder it doesn’t show the year, because it doesn’t have %date% anywhere in it…
Did you actually try what Daeron suggested? Change “VA” there for whatever you actually use, e.g. ‘Various Artists’. |
|
|
|
Apr 4 2012, 10:34
Post
#12
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
I have no idea what that’s meant to be, a syntax illiterate has stumped the pros, nah....but it’s no wonder it doesn’t show the year, because it doesn’t have %date% anywhere in it… I'll randomly insert %date% until it works, (stopped trying that, madness is not my objective).Did you actually try what Daeron suggested? Change “VA” there for whatever you actually use, e.g. ‘Various Artists’. yes I did try what Daeron suggested but his syntax doesn't keep my Various albums grouped as one album irrespective of year, it groups identical years by track with album title, that's why I went "hunting" and found that syntax above.Well at least it groups my various stuff correctly now, I'm grateful for that. Thanks for all your assistance. This post has been edited by tagtypedisplay: Apr 4 2012, 10:54 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 4 2012, 12:12
Post
#13
|
|
|
Group: Super Moderator Posts: 4355 Joined: 23-June 06 Member No.: 32180 |
I have no idea what that’s meant to be, a syntax illiterate has stumped the pros, nah....yes I did try what Daeron suggested but his syntax doesn't keep my Various albums grouped as one album irrespective of year, it groups identical years by track with album title Hmm, I’m not sure why this is. It might help Daeron or someone else to figure this out if you specify which UI you’re using and where you’re entering the grouping string; mentioning things like that is usually a good idea.
|
|
|
|
Apr 4 2012, 13:38
Post
#14
|
|
![]() Group: Members Posts: 1051 Joined: 16-February 08 From: NL Member No.: 51347 |
|
|
|
|
Apr 4 2012, 14:50
Post
#15
|
|
![]() Group: Members Posts: 149 Joined: 9-October 08 Member No.: 59818 |
yes I did try what Daeron suggested but his syntax doesn't keep my Various albums grouped as one album irrespective of year, it groups identical years by track with album title. I highly doubt that, unless you messed up either the tags/syntax. http://dl.dropbox.com/u/3164833/random/VA.png Also I highly recommend using the %album artist% tag instead of %path%, which is really clumsy. You don't even have to re-tag most of your files as if %album artist% is missing, it auto-completes with %artist% (check the wiki). After that you'll be able to use %track artist% as well, available if %album artist% differs from %artist%, which happens when you are dealing with VA albums (and does not require any additional tagging). You can try other methods too, but really, there is a reason why these exist and that is efficiency. This post has been edited by Daeron: Apr 4 2012, 15:18 |
|
|
|
Apr 4 2012, 16:12
Post
#16
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
You can do anything with metal and wood; you can't do everything with a hammer. Err wrong.. Engineers maxim, "The Bigger The Problem The Bigger The Hammer"
This post has been edited by tagtypedisplay: Apr 4 2012, 16:13 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 4 2012, 16:18
Post
#17
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
You can try other methods too, but really, there is a reason why these exist and that is efficiency. My music is immaculately tagged (ID3 v2.3 only), so I don't know why your syntax doesn't work, but I'll keep at it. Thank you kindly for all your help. This post has been edited by tagtypedisplay: Apr 4 2012, 16:24 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 4 2012, 16:42
Post
#18
|
|
|
Group: Members Posts: 163 Joined: 18-September 10 Member No.: 83940 |
You can use a lot of things as a switch (marked with purple) to toggle the date display. This one checks whether ALBUM ARTIST is 'VA'. $if($stricmp(%album artist%,VA),%album%,%album% '('%date%')') yes, but it does not anything else $stricmp(%album artist%,VA) may return 1 but it never returns true therefore you need something along $ifequal($stricmp(%album artist%,VA),1,something,something else) |
|
|
|
Apr 4 2012, 17:12
Post
#19
|
|
![]() Group: Members Posts: 149 Joined: 9-October 08 Member No.: 59818 |
Try providing further details then. For example a picture would be good about the current results (the VA album being shredded by dates), including the properties view like what I did on mine.
You basically need 3 things for this to work: the grouping pattern, the %album artist% field filled as 'VA' and the album names being the same. If these are correct, it should work regardless of anything else. $stricmp(%album artist%,VA) may return 1 but it never returns true 1 equals true. This post has been edited by Daeron: Apr 4 2012, 17:13 |
|
|
|
Apr 4 2012, 17:51
Post
#20
|
|
|
Group: Members Posts: 163 Joined: 18-September 10 Member No.: 83940 |
|
|
|
|
Apr 5 2012, 10:22
Post
#21
|
|
|
Group: Members Posts: 97 Joined: 28-June 10 Member No.: 81892 |
You basically need 3 things for this to work: the grouping pattern, the %album artist% field filled as 'VA' and the album names being the same. If these are correct, it should work regardless of anything else. I finally got your syntax to work partially.Your syntax; $if($stricmp(%album artist%,Various),%album%,%album% '('%date%')') < unable to attain correct grouping > My syntax; $if($stricmp(%album%,Various),%album%'('%date%')',%album% ) < correct grouping for all, but no date at all > My Syntax; $if($stricmp(%album%,Various),%album%,%album%'('%date%')' ) < incorrect grouping, with date > My syntax; $if($stricmp(%album%,Various),%album% ,%album% (%date%)) < correct grouping for all, no date > This post has been edited by tagtypedisplay: Apr 5 2012, 10:40 -------------------- More stars in the universe than grains of beach sand
|
|
|
|
Apr 5 2012, 12:33
Post
#22
|
|
|
Group: Members Posts: 20 Joined: 3-April 12 Member No.: 98351 |
Maybe I'm thinking wrong, but why would %album% be Various? Therefore $stricmp(%album%,Various) should always return 0.
|
|
|
|
Apr 5 2012, 14:49
Post
#23
|
|
![]() Group: Members Posts: 149 Joined: 9-October 08 Member No.: 59818 |
My syntax; $if($stricmp(%album%,Various),%album% ,%album% (%date%)) < correct grouping for all, no date > The reason this 'works' is that you have no '' markers around the () symbols in the red part, therefore that as a whole gets ignored altogether. Consequently, regardless of whether the first part equals true, you end up with the same grouping pattern. The whole syntax literally equals with just: %album% I also wonder why do you check whether your albums' name equals with 'Various'? Are all of your various albums tagged that way? How do you distinguish between each compilation if they all have the same name? I still highly recommend you getting used to %album artist% tags, which makes a lot more sense. Check the example below. CODE %album artist% / (%date%) - %album% / %tracknumber%. %title% (%track artist%) ... VA / (2011) Batman - Arkham City / 01. Mercenary (Panic! At The Disco) VA / (2011) Batman - Arkham City / 02. Deranged (Coheed And Cambria) VA / (2011) Batman - Arkham City / 03. Creature (The Duke Spirit) VA / (2011) Batman - Arkham City / 04. Shadow On The Run (Black Rebel Motorcycle Club) VA / (2011) Batman - Arkham City / 05. Afterdark (Blaqk Audio) ... VA / (2006) FlatOut 2 / 01. Nowhere Ride (The Chelsea Smiles) VA / (2006) FlatOut 2 / 02. Fall Victim (Alkaline Trio) VA / (2006) FlatOut 2 / 03. Blood Brothers (Papa Roach) VA / (2006) FlatOut 2 / 04. Road To Rouen (Supergrass) VA / (2006) FlatOut 2 / 05. Mercy Me (Alkaline Trio) ... http://dl.dropbox.com/u/3164833/random/VA2.png Nice and clean. If you tag your files this way and use that syntax which I gave you first, you should have zero problems. This post has been edited by Daeron: Apr 5 2012, 15:34 |
|
|
|
Apr 5 2012, 15:35
Post
#24
|
|
![]() Group: Members Posts: 469 Joined: 5-June 11 Member No.: 91257 |
I have read the OP's initial post a number of times and his problem does not define itself clearly to me;
For one of these album types, the Tags always define like this: $directory_path(%path%) is constant (all the tracks live in the same parent folder) $meta(album) is constant, and always contains the string "Various" . $meta(date) is variable . $meta(album artist) is ...I'm not sure !? $meta(artist) is variable (obviously the track artist names will be different) $meta(title) is variable (obviously the track title names will be different) Is this the scope of things ...or is there something else ? Is this a sorting problem, or is it a playlist viewer grouping display problem ? This post has been edited by derty2: Apr 5 2012, 15:57 |
|
|
|
Apr 5 2012, 16:09
Post
#25
|
|
![]() Group: Members Posts: 149 Joined: 9-October 08 Member No.: 59818 |
So far I understood it like: he has one parent folder, a possible subfolder named 'Various' which may contains all the VA albums. Those also seem to have all tagged as %album% = 'Various' and have no %album artist% tags at all. Other tags change on per-track basis. It's a grouping problem. It would be possible to adjust the code to either check whether the subfolder is Various ($if($stricmp($directory(%path%,2),Various)) or whether the album is 'Various' ($if($stricmp(%album%,Various)), I just don't see the point since its clumsy. Using %album artist% would make much more sense.
This post has been edited by Daeron: Apr 5 2012, 16:42 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 00:47 |