tree: smarter artist naming and sorting [2/2]
commitd0af22b8f8d715cd117aae6716c1b1dd7e492614
authorGregory Petrosyan <gregory.petrosyan@gmail.com>
Thu, 15 May 2008 01:33:36 +0000 (15 05:33 +0400)
committerTimo Hirvonen <tihirvon@gmail.com>
Sat, 17 May 2008 11:12:28 +0000 (17 14:12 +0300)
treee331d2ceebcfbb7b074ce8698b4569d2a0a3b889
parentac2f8240119bf06eb72843919e32712308acdcb1
tree: smarter artist naming and sorting [2/2]

With this path, tree view updates artist name
when better one becomes available:
- if track to be added contains some sort of pretty name
  ("artistsort", etc)
- if track to be added contains name like "The XXX",
  and current one is "XXX"

(artist identity is determined by comparing raw names
 with initial "The " striped off)

So, from now on, the logic is:
- if any of tracks of this artist contain pretty name,
  it is used
- else, if any track contains name starting with "The",
  that one is used instead (after reformatting
  to something like "XXX, The" for better sorting)
- else, raw name is used

Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
tree.c