21 Aug 2020 - The wiki is undergoing a major cleanup. If you arrived here from a search engine and cannot find the page, please use the wiki search instead (top right corner of page)
More info can be found on the forum
The Music Library, one of the XBMC databases, is a key feature of XBMC. It allows the organization of your music collection by information stored in your music file ID tag, like title, artist, album, genre and popularity. To get the most out of your music, XBMC needs to have all this information available to it. When your collection is scanned XBMC stores all the tagging information (artist, album, year, genre) in the database, which allows you to efficiently search and manage your music collection. If you have never taken the time to tag your music properly, the time is now! Today most media applications and players (iTunes and the iPod for example) organize your music by this ID tag information. Your audio files MUST have a valid ID tag for them to work properly in XBMC's library. There are third party applications available for download from the internet that allow you to add / manage ID tags in your music files.
1 Preparing your Music to be Scanned
For information on preparing your music to be indexed see:
2 Scanning your music
To scan your music collection into the Music Library, first make sure you are not in 'Library Mode' (on the left). Next browse to the location of your music collection and press the white button. This brings up The Context Menu menu with various options. Select the option labeled "Scan item to database". XBMC will then proceed to scan the selected music source in the background into the database/library. Once the scan is complete, you can browse your collection by selecting 'Library Mode'.
The library organizes your music into many categories, allowing you to find a specific song using one of many possible criteria. To the right you can see root menu showing the different sections.
4 Searching your Library
The search button is available on the left side of the 'My Music' window, and is also available in the root listing of your music library. Select it to begin your search. A keyboard will pop-up where you may enter search terms (SMS style with the remote, or just using the virtual keyboard). As you enter more letters, the search will be performed in the background, and results displayed in the search node of the music library. Previous searches are saved, so if you return to the search node later on, it will have the results of your previous search. Artists and Albums are shown on top, followed by matching songs. If the search string you enter is less than 3 characters, then XBMC will just search on the first word of each artist/album/song, else it will do a full text search.
5 Party Mode
The Party Mode option allows you to randomly play music from your entire music collection based on criteria specified in PartyMode.xml. Simply build a Smart Playlist and save it as partymode.xml in The UserData Folder.
Selecting Party Mode from the sidebar will play ALL music scanned into your Music Library in a random order, that meets the conditions specified in the Smart Playlist.
6 Remote browsing
To be able to browse the Music Library outside the GUI, like through The Web Interface, you'll currently have to add a special musicdb:// bookmark, which will show up as 'Library' under Music in the web interface.