![]() |
|
Is different Album sorting per Index possible - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Is different Album sorting per Index possible (/showthread.php?tid=5505) |
Is different Album sorting per Index possible - z624391 - 26-01-2020 13:21 Album.sortTags influences album sorting on all indexes. Is it possible to differentiate this behavior? I can't find a clue (if it is possible or not) within the Minimserver properties guide. Goal: I like to set "<n> Albums" sorting different than "Album" sorting within Artist. RE: Is different Album sorting per Index possible - simoncn - 26-01-2020 22:02 It isn't possible to sort albums in a different order in different places. RE: Is different Album sorting per Index possible - simbun - 29-11-2020 13:48 I've just implemented this myself and thought the essence of it might be useful to others, so I'm attaching it to the most relevant Thread I can find. By the time I look at a list of albums I've either selected an albumartist or have chosen to look at compilations, so I wanted two different approaches to sorting them.
Using the tagUpdate functionality. Code: @ALBUMARTIST=Various ArtistsitemTags : CustomAlbumSort tagOptions: Album.sortTags={AlbumArtist,+CustomAlbumSort,+Album} tagValue : CustomAlbumSort.default={Date} You don't need AlbumArtist in the sortTags, but for scenarios where I haven't restricted to AlbumArtist or Compilation it keeps the sort order consistent i.e. by date within AlbumArtist and by name within Compilations (assuming Compilations are identified by AlbumArtist=Various Artists). RE: Is different Album sorting per Index possible - simbun - 30-11-2020 13:03 I've continued down the rabbit hole and taken it one step further so I can have artist albums prefixed with year (as they're sorted by year), and compilations without (as they're sorted alphabetically and the release date has no real meaning to a compilation). First I remove all Dates for compilations, adding the deleted values back to a new tag called FULLDATE as I still want the metadata to be available for other things e.g. Date.decade.index.sort (I don't want unknown to appear if I haven't already filtered out Compilations). tagUpdate Code: @DATE=1983Then I rename Date to DateExcldngCmpltns (Date Excluding Compilations) and FullDate to Date and fill the blanks with values from DateExcldngCmpltns (which will bring it back to 100% population). aliasTags : Date:DateExcldngCmpltns,FullDate:Date itemTags : DateExcldngCmpltns tagValue : Date.default={DateExcldngCmpltns} Finally I set the sort order and the display format of the album. tagOptions : Album.sortTags={AlbumArtist,+DateExcldngCmpltns,+Album} tagFormat : Album.displayFormat={$DateExcldngCmpltns^^ - $Album} |