<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sho</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sho"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Sho"/>
	<updated>2026-06-16T21:48:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Music_navigation&amp;diff=82165</id>
		<title>Music navigation</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Music_navigation&amp;diff=82165"/>
		<updated>2014-12-07T12:51:56Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* Party Mode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Music library]] }}&lt;br /&gt;
{{cleanup}}&lt;br /&gt;
== Navigating your library ==&lt;br /&gt;
{{See also|Keyboard controls}}&lt;br /&gt;
=== Side bar ===&lt;br /&gt;
The library organizes your music into many categories, allowing you to find a specific song using one of many possible criteria. Below you can see root menu showing the different sections.&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Library.music.controls.jpg|right|360px]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
; View:&lt;br /&gt;
: You can the toggle between the different display options, amongst others; List, Icons and Big Icons.&lt;br /&gt;
; Sort By:&lt;br /&gt;
: You can choose what criteria to sort your music by. Note the arrow to the right which controls whether the items are sorted in ascending or descending order.&lt;br /&gt;
; Library Mode&lt;br /&gt;
: This control allows you to switch between Library Mode and [[Music#Files View|File View]]. (used to be called Switch View)&lt;br /&gt;
; Party Mode&lt;br /&gt;
: See below.&lt;br /&gt;
; Misc Options&lt;br /&gt;
; Search&lt;br /&gt;
: You can search for a string anywhere in the [[The XBMC Database|XBMC music database]], see more below.&lt;br /&gt;
; Filter&lt;br /&gt;
: Allows you to filter the library to only show albums, artists or songs that include the specified string in the name.&lt;br /&gt;
; Hide Fanart&lt;br /&gt;
: Hides Fanart in the chosen view.&lt;br /&gt;
; Small Fanart&lt;br /&gt;
: Shows a smaller version of the fanart instead of a scraped artist picture.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== File mode ===&lt;br /&gt;
File mode is the most basic way of browing your music. In file mode, you browse through your sources folder by folder, in the exact same way they are stored. What you see in file mode is the same as you would see if you were to browse the folders on your computer. &lt;br /&gt;
&lt;br /&gt;
=== Library mode ===&lt;br /&gt;
The library mode is much more advanced and has many more features than the Files View. It has features like song, album and artist info to name a few.&lt;br /&gt;
In order to utilize library mode, you first need to scan your music into the Music library using the [[#Contextual menu]].&lt;br /&gt;
&lt;br /&gt;
== Searching your Library ==&lt;br /&gt;
The search button is available on the left side of the &#039;[[Music]]&#039; 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, XBMC will just search in the first word of each artist/album/song. Otherwise it will do a full word search. &#039;&#039;&#039;NOTE: In order to search within words as well as just for words beginning with your search string, place a % sign in front of the match.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Party Mode ==&lt;br /&gt;
{{main|Smart playlists}}&lt;br /&gt;
Selecting &#039;&#039;Party Mode&#039;&#039; from the sidebar will play ALL valid media scanned into your libraries in a random order that meet the conditions specified in the Smart Playlist.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Party Mode&#039;&#039; option allows you to randomly play music from your entire music or [[Music Videos|music video]] collection based on criteria specified in the &#039;&#039;&#039;[[PartyMode.xsp]]&#039;&#039;&#039; smart playlist which is stored in the [[The UserData Folder]]. To change the behaviour of &#039;&#039;Party Mode&#039;&#039; simply edit the &amp;quot;[[Playlists#Smart Playlists|Party mode playlist]]&amp;quot; item in the Playlist menu by bringing up the [[Music library#Context Menu|context menu]] and select &#039;&#039;Edit Playlist&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
To play any playlist in &#039;&#039;Party Mode&#039;&#039;, you can bring up the [[Music library#Context Menu|context menu]] and select &#039;&#039;Play in party mode&#039;&#039;. This can be done for any valid playlist.&lt;br /&gt;
&lt;br /&gt;
== Context Menu ==&lt;br /&gt;
In the default configuration you pop up the Context Menu using the &#039;C&#039; key on your keyboard. If you are navigating XBMC using a remote control, the default button is, for some releases, the &#039;title&#039; button. If your remote control has no &#039;title&#039; button then you may need to [[HOW-TO:Modify keyboard.xml|remap]] the ContextMenu action to another button.&lt;br /&gt;
&lt;br /&gt;
=== File mode ===&lt;br /&gt;
The context menu allows you to interact with the individual media items. The following options are available whilst in [[Music#Files View|File Mode]], selecting an album:&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Context.files.mymusic.jpg|310px]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
; Queue Item&lt;br /&gt;
: Adds the item to the [[Now Playing]] playlist&lt;br /&gt;
; Play or (Play using...)&lt;br /&gt;
: Plays the selected file. (Play using... depends on players available on your platform e.g. [[PAPlayer]] or [[DVDPlayer]]&lt;br /&gt;
; Add to Favourites&lt;br /&gt;
: Adds the item to your [[Favourites]] menu.&lt;br /&gt;
; Album Information&lt;br /&gt;
: Displays information about the item from [http://allmusic.com allmusic.com]. You can also highlight the item and press the Info button on the remote.&lt;br /&gt;
; Delete&lt;br /&gt;
: Delete selection from your sources (will delete actual files)  Must be enabled in [[Appearance Settings#View Options|Appearance Settings]].&lt;br /&gt;
; Rename&lt;br /&gt;
: Rename selection to something more to your liking. Must be enabled in [[Appearance Settings#View Options|Appearance Settings]].&lt;br /&gt;
; Scan Item to Library&lt;br /&gt;
: Scans the item into the the [[Music Library]]. Performing this on a folder will cause every item in the folder to be scanned.&lt;br /&gt;
; Switch Media&lt;br /&gt;
: Allows you to switch to playback of other types of media (e.g. video files).&lt;br /&gt;
; Go to Root&lt;br /&gt;
: Takes you to the &amp;quot;Music&amp;quot; root folder. &lt;br /&gt;
; Now Playing...&lt;br /&gt;
: Takes you to the [[Now Playing]] screen that shows what is currently playing and what the next queued files are.&lt;br /&gt;
; Settings&lt;br /&gt;
: Opens the [[Music Settings]] menu.&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Other possible menu items&#039;&#039;&#039;&lt;br /&gt;
;Search&lt;br /&gt;
:Allows you to search for specific media&lt;br /&gt;
&lt;br /&gt;
=== Library mode ===&lt;br /&gt;
You perform actions on your music files using the [[General Navigation#Context Menus|Context Menu]]. In Library Mode selecting an album, the following options are available:&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Context.library.mymusic.jpg|300px]]&lt;br /&gt;
|&lt;br /&gt;
; Queue Item&lt;br /&gt;
: Adds the item to the [[Now Playing]] playlist.&lt;br /&gt;
; Play&lt;br /&gt;
: Plays the selected file.&lt;br /&gt;
; Add to Favourites&lt;br /&gt;
: Adds the item to your [[Favourites]] menu.&lt;br /&gt;
; Album / Song Information&lt;br /&gt;
: Shows the relevant information from [http://allmusic.com allmusic.com].&lt;br /&gt;
; Query Info For All Albums&lt;br /&gt;
: Queries information from [http://allmusic.com allmusic.com] for all albums in the path.&lt;br /&gt;
; Change scraper&lt;br /&gt;
: Change scraper from current. &#039;&#039;&#039;&#039;&#039;see also:&#039;&#039;&#039;&#039;&#039; [[set content]]&lt;br /&gt;
; Update Library&lt;br /&gt;
: Checks if files in the Library have been changed, added or removed, modifies the database accordingly and runs a cleaning routine. Adds missing media to the database. &lt;br /&gt;
; Go to Root&lt;br /&gt;
: Takes you to the Music Library root.&lt;br /&gt;
; Now Playing...&lt;br /&gt;
: Takes you to [[Now Playing]] screen that shows what is currently playing and what the next queued files are.&lt;br /&gt;
; Settings&lt;br /&gt;
: Opens the [[Music Settings]] menu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Music library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Music_navigation&amp;diff=82162</id>
		<title>Music navigation</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Music_navigation&amp;diff=82162"/>
		<updated>2014-12-07T12:44:31Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* Party Mode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Music library]] }}&lt;br /&gt;
{{cleanup}}&lt;br /&gt;
== Navigating your library ==&lt;br /&gt;
{{See also|Keyboard controls}}&lt;br /&gt;
=== Side bar ===&lt;br /&gt;
The library organizes your music into many categories, allowing you to find a specific song using one of many possible criteria. Below you can see root menu showing the different sections.&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Library.music.controls.jpg|right|360px]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
; View:&lt;br /&gt;
: You can the toggle between the different display options, amongst others; List, Icons and Big Icons.&lt;br /&gt;
; Sort By:&lt;br /&gt;
: You can choose what criteria to sort your music by. Note the arrow to the right which controls whether the items are sorted in ascending or descending order.&lt;br /&gt;
; Library Mode&lt;br /&gt;
: This control allows you to switch between Library Mode and [[Music#Files View|File View]]. (used to be called Switch View)&lt;br /&gt;
; Party Mode&lt;br /&gt;
: See below.&lt;br /&gt;
; Misc Options&lt;br /&gt;
; Search&lt;br /&gt;
: You can search for a string anywhere in the [[The XBMC Database|XBMC music database]], see more below.&lt;br /&gt;
; Filter&lt;br /&gt;
: Allows you to filter the library to only show albums, artists or songs that include the specified string in the name.&lt;br /&gt;
; Hide Fanart&lt;br /&gt;
: Hides Fanart in the chosen view.&lt;br /&gt;
; Small Fanart&lt;br /&gt;
: Shows a smaller version of the fanart instead of a scraped artist picture.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== File mode ===&lt;br /&gt;
File mode is the most basic way of browing your music. In file mode, you browse through your sources folder by folder, in the exact same way they are stored. What you see in file mode is the same as you would see if you were to browse the folders on your computer. &lt;br /&gt;
&lt;br /&gt;
=== Library mode ===&lt;br /&gt;
The library mode is much more advanced and has many more features than the Files View. It has features like song, album and artist info to name a few.&lt;br /&gt;
In order to utilize library mode, you first need to scan your music into the Music library using the [[#Contextual menu]].&lt;br /&gt;
&lt;br /&gt;
== Searching your Library ==&lt;br /&gt;
The search button is available on the left side of the &#039;[[Music]]&#039; 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, XBMC will just search in the first word of each artist/album/song. Otherwise it will do a full word search. &#039;&#039;&#039;NOTE: In order to search within words as well as just for words beginning with your search string, place a % sign in front of the match.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Party Mode ==&lt;br /&gt;
{{main|Smart playlists}}&lt;br /&gt;
Selecting &#039;&#039;Party Mode&#039;&#039; from the sidebar will play ALL valid media scanned into your libraries in a random order that meet the conditions specified in the Smart Playlist.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Party Mode&#039;&#039; option allows you to randomly play music from your entire music or [[Music Videos|music video]] collection based on criteria specified in the &#039;&#039;&#039;[[PartyMode.xsp]]&#039;&#039;&#039; smart playlist which is stored in the [[The UserData Folder]].&lt;br /&gt;
&lt;br /&gt;
Simply edited the &amp;quot;[[Playlists#Smart Playlists|Party mode playlist]]&amp;quot; item in the Playlist menu. &lt;br /&gt;
&lt;br /&gt;
To play any playlist in &#039;&#039;Party Mode&#039;&#039;, you can bring up the [[Music library#Context Menu|context menu]] and select &amp;quot;Play in party mode&amp;quot;. This can be done for any valid playlist.&lt;br /&gt;
&lt;br /&gt;
== Context Menu ==&lt;br /&gt;
In the default configuration you pop up the Context Menu using the &#039;C&#039; key on your keyboard. If you are navigating XBMC using a remote control, the default button is, for some releases, the &#039;title&#039; button. If your remote control has no &#039;title&#039; button then you may need to [[HOW-TO:Modify keyboard.xml|remap]] the ContextMenu action to another button.&lt;br /&gt;
&lt;br /&gt;
=== File mode ===&lt;br /&gt;
The context menu allows you to interact with the individual media items. The following options are available whilst in [[Music#Files View|File Mode]], selecting an album:&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Context.files.mymusic.jpg|310px]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
; Queue Item&lt;br /&gt;
: Adds the item to the [[Now Playing]] playlist&lt;br /&gt;
; Play or (Play using...)&lt;br /&gt;
: Plays the selected file. (Play using... depends on players available on your platform e.g. [[PAPlayer]] or [[DVDPlayer]]&lt;br /&gt;
; Add to Favourites&lt;br /&gt;
: Adds the item to your [[Favourites]] menu.&lt;br /&gt;
; Album Information&lt;br /&gt;
: Displays information about the item from [http://allmusic.com allmusic.com]. You can also highlight the item and press the Info button on the remote.&lt;br /&gt;
; Delete&lt;br /&gt;
: Delete selection from your sources (will delete actual files)  Must be enabled in [[Appearance Settings#View Options|Appearance Settings]].&lt;br /&gt;
; Rename&lt;br /&gt;
: Rename selection to something more to your liking. Must be enabled in [[Appearance Settings#View Options|Appearance Settings]].&lt;br /&gt;
; Scan Item to Library&lt;br /&gt;
: Scans the item into the the [[Music Library]]. Performing this on a folder will cause every item in the folder to be scanned.&lt;br /&gt;
; Switch Media&lt;br /&gt;
: Allows you to switch to playback of other types of media (e.g. video files).&lt;br /&gt;
; Go to Root&lt;br /&gt;
: Takes you to the &amp;quot;Music&amp;quot; root folder. &lt;br /&gt;
; Now Playing...&lt;br /&gt;
: Takes you to the [[Now Playing]] screen that shows what is currently playing and what the next queued files are.&lt;br /&gt;
; Settings&lt;br /&gt;
: Opens the [[Music Settings]] menu.&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Other possible menu items&#039;&#039;&#039;&lt;br /&gt;
;Search&lt;br /&gt;
:Allows you to search for specific media&lt;br /&gt;
&lt;br /&gt;
=== Library mode ===&lt;br /&gt;
You perform actions on your music files using the [[General Navigation#Context Menus|Context Menu]]. In Library Mode selecting an album, the following options are available:&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[File:Context.library.mymusic.jpg|300px]]&lt;br /&gt;
|&lt;br /&gt;
; Queue Item&lt;br /&gt;
: Adds the item to the [[Now Playing]] playlist.&lt;br /&gt;
; Play&lt;br /&gt;
: Plays the selected file.&lt;br /&gt;
; Add to Favourites&lt;br /&gt;
: Adds the item to your [[Favourites]] menu.&lt;br /&gt;
; Album / Song Information&lt;br /&gt;
: Shows the relevant information from [http://allmusic.com allmusic.com].&lt;br /&gt;
; Query Info For All Albums&lt;br /&gt;
: Queries information from [http://allmusic.com allmusic.com] for all albums in the path.&lt;br /&gt;
; Change scraper&lt;br /&gt;
: Change scraper from current. &#039;&#039;&#039;&#039;&#039;see also:&#039;&#039;&#039;&#039;&#039; [[set content]]&lt;br /&gt;
; Update Library&lt;br /&gt;
: Checks if files in the Library have been changed, added or removed, modifies the database accordingly and runs a cleaning routine. Adds missing media to the database. &lt;br /&gt;
; Go to Root&lt;br /&gt;
: Takes you to the Music Library root.&lt;br /&gt;
; Now Playing...&lt;br /&gt;
: Takes you to [[Now Playing]] screen that shows what is currently playing and what the next queued files are.&lt;br /&gt;
; Settings&lt;br /&gt;
: Opens the [[Music Settings]] menu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Music library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81595</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81595"/>
		<updated>2014-11-23T18:03:16Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* Adding new XBMC devices to the MySQL setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your XBMC devices by sharing them on the network through file sharing. XBMC itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each XBMC device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as XBMC will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the XBMC instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with XBMC.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open XBMC on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every XBMC install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point XBMC is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]). From this point on, XBMC behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple XBMC installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your XBMC installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to XBMC and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, XBMC will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using XBMC&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your XBMC devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new XBMC devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional XBMC devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one XBMC device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you however used a metadata collector add-on ([[scraper]]) that does not ship by default with new installations, such as the [[Add-on:Universal Movie Scraper|Universal Movie Scraper]] you will not be able to display the [[Video_navigation#Media_information_screen|media information screen]] on the new XBMC device. To fix that you need to install the same metadata collector add-on on the new device.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. XBMC will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each XBMC device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing XBMC leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81582</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81582"/>
		<updated>2014-11-23T11:51:48Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* Adding new XBMC devices to the MySQL setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your XBMC devices by sharing them on the network through file sharing. XBMC itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each XBMC device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as XBMC will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the XBMC instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with XBMC.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open XBMC on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every XBMC install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point XBMC is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]). From this point on, XBMC behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple XBMC installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your XBMC installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to XBMC and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, XBMC will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using XBMC&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your XBMC devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new XBMC devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional XBMC devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one XBMC device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you however used a metadata collector add-on ([[scraper]]) that does not ship by default with new installations, such as the [[Add-on:Universal Movie Scraper|Universal Movie Scraper]] you will not be able to display the [[Video_navigation#Media_information_screen|media information screen]] on the new XBMC device. To fix that you need to install the appropriate add-on on the new client and [[set content]] on the media source. Just make sure to select &amp;quot;No&amp;quot; when asked if you would like to &amp;quot;refresh information for all items&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. XBMC will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each XBMC device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing XBMC leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81581</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=81581"/>
		<updated>2014-11-23T11:35:39Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* Adding new XBMC devices to the MySQL setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your XBMC devices by sharing them on the network through file sharing. XBMC itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each XBMC device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as XBMC will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the XBMC instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with XBMC.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open XBMC on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every XBMC install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point XBMC is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]). From this point on, XBMC behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple XBMC installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your XBMC installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to XBMC and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, XBMC will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using XBMC&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your XBMC devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new XBMC devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional XBMC devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one XBMC device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you however used a metadata collector add-on ([[scraper]]) that does not ship by default with new installations, such as the [[Add-on:Universal Movie Scraper|Universal Movie Scraper]] you will not be able to display the [[Video_navigation#Media_information_screen|media information screen]] on the new XBMC device. To fix that you need to install the appropriate add-on on the new client and [[set content]] on the media source. Just make sure to select &amp;quot;No&amp;quot; when asked if you would like to update information on all items.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. XBMC will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each XBMC device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing XBMC leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=CEC&amp;diff=75544</id>
		<title>CEC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=CEC&amp;diff=75544"/>
		<updated>2014-05-26T12:03:28Z</updated>

		<summary type="html">&lt;p&gt;Sho: /* TVs */  clean up Sony section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Pulse Eight CEC.jpg|300px|right|thumb|The Pulse-Eight USB to CEC adapter, for devices that don&#039;t have CEC connected to their internal HDMI pins.]]&lt;br /&gt;
{{mininav|[[Remote controls]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;[[w:Consumer Electronics Control|CEC]] ({{u|C}}onsumer {{u|E}}lectronics {{u|C}}ontrol) allows for control of devices over the HDMI port. Since v11 (Eden) XBMC comes with [http://libcec.pulse-eight.com/ libCEC] which allows control of the XBMC interface over the standard TV remote that comes with your TV. As buttons are pressed the remote command is sent via the HDMI cable to your XBMC device.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CEC allows you to do things such as:&lt;br /&gt;
* Controlling XBMC from the TV&#039;s remote control&lt;br /&gt;
* Automatically switch to the right TV input device&lt;br /&gt;
* letting the HTPC control what mode your audio receiver is on when the TV switches on&lt;br /&gt;
* Turning all devices off with one remote&lt;br /&gt;
* and a lot more!&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
Settings for your CEC devices can be found in:&lt;br /&gt;
&lt;br /&gt;
System -&amp;gt; Settings -&amp;gt; System -&amp;gt; Input Devices -&amp;gt; Peripherals -&amp;gt; CEC adapter&lt;br /&gt;
&lt;br /&gt;
== CEC-capable HTPCs ==&lt;br /&gt;
* Most HTPCs, such as x86 (&amp;quot;desktop&amp;quot;-class) HTPCs, don&#039;t have the ability to use CEC on their internal HDMI ports. Probably because the industry is silly. Those HTPCs will need to use an adapter to inject the CEC signal into the HDMI cable, such as the Pulse-Eight CEC USB adapter: http://www.pulse-eight.com/store/products/104-usb-hdmi-cec-adapter.aspx&lt;br /&gt;
&lt;br /&gt;
* Some ARM/&amp;quot;Android boxes&amp;quot; have the ability to use CEC, but only expose some basic functions to XBMC. These functions are typically enough to use a TV remote to control that box. For example, the [[Amazon Fire TV]] has this kind of CEC functionality.&lt;br /&gt;
&lt;br /&gt;
* Other devices, such as the [[Raspberry Pi]], have more complete CEC abilities, and are completely built-in.&lt;br /&gt;
&lt;br /&gt;
== Trade names ==&lt;br /&gt;
There are different trade names for HDMI CEC, depending on who is the manufacturer of your device, so it doesn&#039;t have to be stated as HDMI-CEC. Find your manufacturer on this list and see what it is called for your device:&lt;br /&gt;
&lt;br /&gt;
* AOC - &#039;&#039;&#039;E-link&#039;&#039;&#039;&lt;br /&gt;
* Hitachi - &#039;&#039;&#039;HDMI-CEC&#039;&#039;&#039;&lt;br /&gt;
* LG - &#039;&#039;&#039;SimpLink&#039;&#039;&#039;&lt;br /&gt;
* Loewe - &#039;&#039;&#039;Digital Link&#039;&#039;&#039; or &#039;&#039;&#039;Digital Link Plus&#039;&#039;&#039;&lt;br /&gt;
* Mitsubishi - &#039;&#039;&#039;NetCommand for HDMI&#039;&#039;&#039;&lt;br /&gt;
* Onkyo - &#039;&#039;&#039;RIHD (Remote Interactive over HDMI)&#039;&#039;&#039;&lt;br /&gt;
* Panasonic - &#039;&#039;&#039;VIERA Link&#039;&#039;&#039; or &#039;&#039;&#039;HDAVI Control&#039;&#039;&#039; or &#039;&#039;&#039;EZ-Sync&#039;&#039;&#039;&lt;br /&gt;
* Philips - &#039;&#039;&#039;EasyLink&#039;&#039;&#039;&lt;br /&gt;
* Pioneer - &#039;&#039;&#039;Kuro Link&#039;&#039;&#039;&lt;br /&gt;
* Runco International - &#039;&#039;&#039;RuncoLink&#039;&#039;&#039;&lt;br /&gt;
* Samsung - &#039;&#039;&#039;Anynet+&#039;&#039;&#039;&lt;br /&gt;
* Sharp - &#039;&#039;&#039;Aquos Link&#039;&#039;&#039;&lt;br /&gt;
* Sony - &#039;&#039;&#039;BRAVIA Link&#039;&#039;&#039; or &#039;&#039;&#039;BRAVIA Sync&#039;&#039;&#039;&lt;br /&gt;
* Toshiba - &#039;&#039;&#039;Regza Link&#039;&#039;&#039; or &#039;&#039;&#039;CE-Link&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Devices Known to work ==&lt;br /&gt;
With different TV&#039;s and devices comes different compatibility. An up to date vendor support matrix can be found [http://libcec.pulse-eight.com/vendor/support here], which lists which features are supported for each vendor.&lt;br /&gt;
&lt;br /&gt;
Below is a list of TV&#039;s which are known to be working with CEC and XBMC:&lt;br /&gt;
&lt;br /&gt;
=== TVs ===&lt;br /&gt;
* LG 47LS4600&lt;br /&gt;
* LG 47CS570&lt;br /&gt;
* LG LM620T&lt;br /&gt;
* LG 37LG6000&lt;br /&gt;
* LG 42LD420&lt;br /&gt;
* LG 42LD550&lt;br /&gt;
* LG 60PM6700 (Most of the expected buttons work, EXCEPT the number &amp;amp; channel buttons)&lt;br /&gt;
* LG 32LN572B (2013 model tested on Raspberry Pi running OpenELEC 3.2.3. The regular TV remote control works except forward and rewind but the left and right skip keys works so it&#039;s quiet useable. The Magic Remote also seems to work but haven&#039;t been tested properly) &lt;br /&gt;
* Panasonic TXL-47DT50&lt;br /&gt;
* Panasonic Viera GT30&lt;br /&gt;
* Panasonic Viera S60&lt;br /&gt;
* Panasonic Viera ST50&lt;br /&gt;
* Panasonic Viera TH-42PX80E&lt;br /&gt;
* Panasonic Viera TH-42PZ85E&lt;br /&gt;
* Panasonic Viera TH-P42S10A&lt;br /&gt;
* Panasonic Viera TH-P50G10A&lt;br /&gt;
* Philips 37PFL6007K&lt;br /&gt;
* Philips 47PFL5007K&lt;br /&gt;
* Samsung ES6800&lt;br /&gt;
* Samsung LE32B650&lt;br /&gt;
* Samsung LE37D570&lt;br /&gt;
* Samsung UE40C7700&lt;br /&gt;
* Samsung UE46F8000&lt;br /&gt;
* Samsung UE50EH5300&lt;br /&gt;
* Samsung UE55F6510&lt;br /&gt;
* Sharp LC-52D83X&lt;br /&gt;
* Sony Bravia KDL-32W5500 (Guide button doesn&#039;t work as context menu - reassign a coloured button for this function)&lt;br /&gt;
* Sony Bravia KDL-40M4000&lt;br /&gt;
* Sony Bravia KDL-46EX520&lt;br /&gt;
* Sony Bravia KDL-40HX705&lt;br /&gt;
* Sony Bravia KDL-46HX800&lt;br /&gt;
* Sony Bravia KDL-46NX715&lt;br /&gt;
* Sony Bravia KDL-52NX800&lt;br /&gt;
* Sony Bravia KD-55X9004A&lt;br /&gt;
* Sony NSX-40GT1 (Google TV)&lt;br /&gt;
* Vizio M-Series&lt;br /&gt;
&lt;br /&gt;
=== Home Cinema Systems ===&lt;br /&gt;
* Onkyo HT-R390 Amplifier&lt;br /&gt;
* Sony STR-DH820&lt;br /&gt;
* Yamaha RX-V473 AV-Receiver&lt;br /&gt;
* Yamaha RX-V1071 AV Receiver (only on HDMI Out 1)&lt;br /&gt;
&lt;br /&gt;
=== Projectors ===&lt;br /&gt;
* Epson EH-TW6100&lt;br /&gt;
&lt;br /&gt;
=== XBMC Devices ===&lt;br /&gt;
HDMI ports on computers (onboard or via GPU) do not have the CEC feature, but can use a CEC adapter such as this one from [[Pulse-Eight]]: http://www.pulse-eight.com/store/products/104-usb-hdmi-cec-adapter.aspx&lt;br /&gt;
&lt;br /&gt;
Some recent Intel motherboards come with a new HTPC header, to connect Pulse-Eight&#039;s internal HDMI CEC adapter: http://www.pulse-eight.com/store/products/117-internal-hdmi-cec-adapter.aspx&lt;br /&gt;
&lt;br /&gt;
==== [[Raspberry Pi]] ====&lt;br /&gt;
The Raspberry Pi GPU has CEC support which is supported by libCEC, and is therefore fully supported by XBMC.&lt;br /&gt;
&lt;br /&gt;
=== Common Issues with CEC ===&lt;br /&gt;
When &amp;quot;setting up&amp;quot; CEC make sure your configuration uses good HDMI cables. Especially cheap cables - still able to support 1080p without any problems - have been reported to cause problems with CEC (eg. devices like raspberry not showing up in the CEC menu at all, devices showing up but remote not working, etc).&lt;br /&gt;
&lt;br /&gt;
Using better HDMI cables might resolve that problem.&lt;br /&gt;
&lt;br /&gt;
There are also reports of devices with improper HDMI CEC implementation, such as ROKU streaming box, causing problems with CEC device recognition. Disconnecting non-CEC devices, or upgrading firmware on those devices, may resolve the problem.&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* http://libcec.pulse-eight.com/faq&lt;br /&gt;
&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
[[Category:XBMC Manual]]&lt;br /&gt;
{{frodo updated}}&lt;/div&gt;</summary>
		<author><name>Sho</name></author>
	</entry>
</feed>