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.

Ignore leading "the" when sorting and removing splitter (0.9, Split from "foobar2000 0.9.5 beta 2"
TheSaneLunatic
post Oct 22 2007, 01:40
Post #1





Group: Members
Posts: 29
Joined: 16-August 07
Member No.: 46237



I have a quick question... how does one sort artists in order to bypass "the" in the beginning? I know where to place it, just not the code. Thanks in advance!!!
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Jose Hidalgo
post Nov 26 2007, 15:30
Post #2





Group: Banned
Posts: 385
Joined: 22-June 06
Member No.: 32111



I got it pozp ! biggrin.gif

I had simply forgotten to do the same thing with the Custom grouping schemes. So now I have the following TWO codes :

Prefs > General :

CODE
$put(c,$replace($put(b,$cut(%album artist%,$put(a,$strchr(%album artist%, )))),The ,,Le ,,Les ,,La ,,Las ,,Los ,)$substr(%album artist%,$add($get(a),1),999))$iflonger(%album artist%,$len($get(c)),' ('$trim($get(b))')',) $num($sub(3000,%date%),4) [%album%] [%disc%.] [$num(%tracknumber%,2).] $if2(%title%,%filename_ext%)


Prefs > Display > Default UI > Playlist view > Custom grouping schemes :

CODE
$put(c,$replace($put(b,$cut(%album artist%,$put(a,$strchr(%album artist%, )))),The ,,Le ,,Les ,,La ,,Las ,,Los ,)$substr(%album artist%,$add($get(a),1),999))$iflonger(%album artist%,$len($get(c)),' ('$trim($get(b))')',) - '['%date%']' %album%[' ('CD %discnumber%')']


The first code is slightly different because it sorts albums by date in inverse chronological order (I like that, shows latest albums first). The second code only handles the way albums are presented in the Playlist view.

What do you think ? Is it perfect or can it be improved ? wink.gif

Thanks again !

Jose

This post has been edited by Jose Hidalgo: Dec 3 2007, 03:07
Go to the top of the page
+Quote Post

Posts in this topic
- TheSaneLunatic   Ignore leading "the" when sorting and removing splitter (0.9   Oct 22 2007, 01:40
- - TheSaneLunatic   After reading the feature request topic and all 10...   Nov 2 2007, 08:31
|- - fbuser   QUOTE (TheSaneLunatic @ Nov 2 2007, 08:31...   Nov 2 2007, 10:52
|- - unkwn   QUOTE (TheSaneLunatic @ Oct 21 2007, 17:4...   Nov 2 2007, 17:37
- - Frank Bicking   QUOTE I would really love to have an option while ...   Nov 2 2007, 10:26
- - Frank Bicking   QUOTE (fbuser @ Nov 2 2007, 10:52) The be...   Nov 2 2007, 14:31
- - TheSaneLunatic   QUOTE (Frank Bicking @ Nov 2 2007, 02:26)...   Nov 2 2007, 23:30
- - Jose Hidalgo   May I ask where exactly this code must be placed i...   Nov 22 2007, 03:51
- - unkwn   you would replace it anywhere you use %artist% eit...   Nov 22 2007, 05:15
- - Paws   Sorry to but in, unkwn thanks for the code works l...   Nov 22 2007, 05:28
|- - unkwn   QUOTE (Paws @ Nov 21 2007, 23:28) Sorry t...   Nov 22 2007, 06:08
- - Jose Hidalgo   Thanks unkwn ! One question : wouldn't...   Nov 22 2007, 06:14
|- - unkwn   QUOTE (Jose Hidalgo @ Nov 22 2007, 00:14)...   Nov 22 2007, 06:38
- - Jose Hidalgo   Yes, I've just found it (I've just edited ...   Nov 22 2007, 06:39
- - Jose Hidalgo   Me again. Just to improve it a bit more : CODE...   Nov 22 2007, 18:57
- - pozp   Try this (though maybe not a simpler way). CODE...   Nov 23 2007, 09:15
- - Jose Hidalgo   Hi pozp, thank you very much. I've tried it....   Nov 26 2007, 05:52
- - pozp   Perhaps removing unnecessary space in "Los ...   Nov 26 2007, 09:18
- - Jose Hidalgo   I got it pozp ! I had simply forgotten to ...   Nov 26 2007, 15:30
|- - jmlane   QUOTE (Jose Hidalgo @ Nov 26 2007, 09:30)...   Dec 14 2007, 21:20
- - Jose Hidalgo   I think I've managed to improve it a bit : CO...   Dec 2 2007, 17:41
- - Jose Hidalgo   Another small improvement : CODE$put(c,...   Dec 4 2007, 03:17
- - Jose Hidalgo   Why don't you just upgrade to 0.9.5 ?   Dec 14 2007, 23:47
- - sidewalking   Sorry to resurrect, but I didn't see anything ...   Aug 31 2008, 05:29
- - Soviet Commissar   QUOTE (sidewalking @ Aug 30 2008, 23:29) ...   Nov 13 2009, 22:30


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: 18th September 2014 - 02:36