Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - bamberg

1
Suggestions / Re: Artists sorting
November 15, 2010, 11:17:09
I want to second this request.
You can achieve it partially (for the popup you get when clicking on artist) with this patch


diff --git a/gmusicbrowser.pl b/gmusicbrowser.pl
index 6b0f7fb..0384b74 100755
--- a/gmusicbrowser.pl
+++ b/gmusicbrowser.pl
@@ -5548,7 +5548,8 @@ sub PrefMisc
        my $shutentry=NewPrefEntry(Shutdown_cmd => _"Shutdown command :", tip => _"Command used when\n'turn off computer when queue empty'\nis selected");
        #artist splitting
        my %split=
-       (       ' & |, |;'      => _"' & ' and ', ' and ';'",
+       (       ' the |The | & |, and |and |, |;|\(|\)' => _"' & ' and ', [and]' and ';' and brackets (Also remove The from Names)",
+                ' & |, |;'     => _"' & ' and ', ' and ';'",
                ' & '           => "' & '",
                ' \\+ '         => "' + '",
                '; *'           => "';'",

This also extends the splitting to handle cases like: BBM (Jack Bruce, Ginger Baker, and Gary Moore) ->
- BBM
- Jack Bruce
- Ginger Baker
- Gary Moore

The downside is that it adds everything starting with "The " to the group <Unknown> too. So for example "The Animals" is split into
- <Unkown>
- Animals
It would be much nicer if there were a function handle which could be applied to all the entries in the splitted list which would transform "The Animals" to "Animals, The" and "The Animals", generating two entries from a single entry. But I did not find out how to do this by looking at the code for 10 minutes :)

Brian