# Music Library Metadata You can have the script edit the metadata of Artists, Albums, and Tracks by adding them to the `metadata` mapping of a Metadata File. An example of multiple metadata edits in a music library is below: ```yaml metadata: "Linkin Park": country: "United States of America" album_sorting: newest albums: "Hybrid Theory": originally_available: "2000-10-24" tracks: 1: user_rating: 5 "One Step Closer": user_rating: 5 "Meteora": originally_available: "2003-03-25" album_sorting: newest tracks: 9: user_rating: 5 "Numb": user_rating: 5 "Minutes To Midnight": originally_available: "2007-05-14" ``` ## Artist Each artist is defined by the mapping name which must be the same as the artist name in the library unless an `alt_title` is specified. ### Albums To edit the metadata of a particular Album for an Artist use the `albums` attribute on its artist. The mapping name is the album name. ### Tracks To edit the metadata of a particular Track on an Album use the `tracks` attribute on its album. The mapping name is the track number on that Album, or the title of the Track. ## Metadata Edits The available attributes for editing artists, albums, and tracks are as follows ### Special Attributes | Attribute | Values | Artists | Album | Tracks | |:------------|:------------------------------|:--------:|:--------:|:--------:| | `alt_title` | Alternative title to look for | ✅ | ✅ | ✅ | | `albums` | Mapping to define Albums | ✅ | ❌ | ❌ | | `tracks` | Mapping to define Tracks | ❌ | ✅ | ❌ | * If you know of another Title your item might exist under, but you want it titled differently you can use `alt_title` to specify another title to look under and then be changed to the mapping name. For Example the Artist `Kesha` used to be stylized as `Ke$ha`, and might still be found that way in Metadata results. ```yaml metadata: "Kesha": alt_title: "Ke$ha" ``` This would change the name of the default `Ke$ha` to `Kesha` and would not mess up any subsequent runs. `` ### General Attributes | Attribute | Values | Artists | Album | Tracks | |:-----------------------|:--------------------------------------------------------------|:--------:|:--------:|:--------:| | `title` | Text to change Title | ❌ | ❌ | ✅ | | `sort_title` | Text to change Sort Title | ✅ | ✅ | ✅ | | `user_rating` | Number to change User Rating | ✅ | ✅ | ✅ | | `critic_rating` | Number to change Critic Rating | ❌ | ✅ | ❌ | | `originally_available` | Date to change Originally Available
`default` | Library default |
`oldest` | Oldest first |
`newest` | Newest first |
`name` | Alphabetical |