-
Notifications
You must be signed in to change notification settings - Fork 3
Parsing
X-Ryl669 edited this page Sep 30, 2016
·
5 revisions
When songs are scanned by kutr, the following algorithm applies:
- Each song is searched for tags (ID3v1, ID3v2, etc...). ID3v2 is preferred other ID3v1.
- Each tag that's being used is converted from HTML entities (like & > etc...) to their respective UTF-8 encoding
- A
compilationtag is set if it does exists already, or if a tagpart_of_a_compilationexists, or if aalbumartisttag exists and is different fromartisttag. - Then, a file called
.virtual-albumis searched in the current songs folder. If found, the folder name is replacing thealbumtag (explaination below) - Finally, if both
albumtag andartisttag exist, an album with the same name is looked up in the database. If this album's path is the same as the current song, and itsartisttag differs, then the album is marked as a compilation automatically.
Typically, the rules above ensure that the following case appears good:
- You have a "compilation of different artist songs" in a single folder (think of "Best classical music compilation of all time" kind of albums). Your song are not tagged with
compilationorpart_of_compilation, they will still appear as a compilation in kutr, instead of being spread in numerous albums for each different artist. - You have a folder full of cool music for a party. Each song was carefully selected, and you don't intend to modify their
albumtag to make it appear as a "single" album. You simply need to create a.virtual-albumfile in the folder, and kutr will create an album named after the folder they are in. Your other option would have been to create a playlist, but kutr would have created a zillions albums for each song. Please notice that this happens before "compilation" merging, so if you have different artists in the folder, then the virtual album will be marked as a compilation. - You like an artist but not all songs from an album (in fact, you have few of them from many different albums). You don't want to clutter the album list with many albums with 1 or 2 songs in them. Create a
.virtual-albumin your artist folder, and kutr will create a virtual album merging all different albums for each song for this artist (provided theartisttag is the same for all songs).