<?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=Imsodin</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=Imsodin"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Imsodin"/>
	<updated>2026-06-16T04:12:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Basic_playlists&amp;diff=124502</id>
		<title>Basic playlists</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Basic_playlists&amp;diff=124502"/>
		<updated>2016-09-27T21:54:49Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Mention that playlist should not go directly into the given locations.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Playlists]] }} {{to do}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;Kodi supports both basic playlists and &#039;&#039;&#039;[[smart playlists]]&#039;&#039;&#039;. A basic playlist is a normal text file that lists one or more media files (Audio or Video), and plays them in succession. You can either create your own or use existing playlists from other sources, such as a playlist generated from Winamp, iTunes, or other sources. Basic playlists can be created and edited directly from Kodi&#039;s GUI.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Basic playlists ==&lt;br /&gt;
The main way to create and manipulate playlists in Kodi is through the playlist editors (both for normal and smart playlists).&lt;br /&gt;
&lt;br /&gt;
=== How to create a normal playlist ===&lt;br /&gt;
[[File:Playlist queue.png|500px|right]]&lt;br /&gt;
You can add videos/songs or entire folders with the &amp;quot;Queue&amp;quot; action of your remote/keyboard ({{keypress|Q}} on a keyboard) or the &#039;&#039;&#039;&amp;quot;Queue Item&amp;quot;&#039;&#039;&#039; option in the context menu can be used. Kodi will add the selected item to the playlist and then advance to the next item in the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To see the currently loaded playlist, bring up the context menu.  The currently playing/queued playlist is accessible via the &#039;&#039;&#039;&amp;quot;Current playlist&amp;quot;&#039;&#039;&#039; item in the left hand sidebar menu.  If the playlist is currently empty then that option will not be visible in the sidebar menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While in the &amp;quot;Current playlist&amp;quot; window and pressing the &#039;&#039;&#039;Select&#039;&#039;&#039; or the &#039;&#039;&#039;Play&#039;&#039;&#039; button will start playback of your playlist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When in the &amp;quot;Current playlist&amp;quot; view, you can save your playlist by bringing up the options in the left hand sidebar menu. Playlists are, by default, saved in a subfolder  of [[userdata]]/playlists (separate folder for music, video and mixed playlists).&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Current playlist window ===&lt;br /&gt;
{{anchor|Now Playing}}&lt;br /&gt;
The current playlist is a special window for the current audio or video playlist. This list is accessible from the left hand sidebar menu and [[Music#OSD .28On Screen Display.29|music OSD]]. Selecting an entry will start playback.&lt;br /&gt;
{{-}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Sidebar menu ====&lt;br /&gt;
[[File:Now playing 3.png|500px|right]]&lt;br /&gt;
On the default skin (Confluence) you can bring up these options by bringing up the sidebar menu (press {{keypress|left}} on a keyboard or remote).&lt;br /&gt;
;Shuffle&lt;br /&gt;
:Shuffles the currently playing playlist&lt;br /&gt;
;Repeat&lt;br /&gt;
:Repeats the currently playing playlist, options are: &#039;&#039;&#039;All&#039;&#039;&#039; songs/videos, &#039;&#039;&#039;One&#039;&#039;&#039; song/video or &#039;&#039;&#039;Off&#039;&#039;&#039; for no repeating.&lt;br /&gt;
;Save&lt;br /&gt;
:Saves the currently playing playlist&lt;br /&gt;
;Clear&lt;br /&gt;
:Clears the currently playing playlist&lt;br /&gt;
{{-}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Context menu ====&lt;br /&gt;
[[File:Now playing 2.png|500px|right]]&lt;br /&gt;
The context menu (press {{keypress|C}} on a keyboard) within the current playlist allows you to move the order of items or remove them.&lt;br /&gt;
&lt;br /&gt;
On a [[keyboard]] you can also use:&lt;br /&gt;
* {{keypress|U}} - Move selected up&lt;br /&gt;
* {{keypress|D}} - Move selected down&lt;br /&gt;
* {{keypress|DEL}} - Remove from playlist.&lt;br /&gt;
&lt;br /&gt;
A remote control with the proper [[keymap]] additions can also use those actions.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Party Mode playlists ==&lt;br /&gt;
{{see|Party Mode}}&lt;br /&gt;
&lt;br /&gt;
== Smart playlists ==&lt;br /&gt;
{{main|Smart playlists}}&lt;br /&gt;
{{#lst:Smart playlist|intro}}&lt;br /&gt;
&lt;br /&gt;
== Other supported playlist ==&lt;br /&gt;
Kodi supports [http://en.wikipedia.org/wiki/PLS_%28file_format%29 PLS], Winamp [http://en.wikipedia.org/wiki/M3U M3U], [http://en.wikipedia.org/wiki/Cue_sheet Cue Sheets], and [[Smart playlists|Kodi Smart Playlist (XSP)]] playlists.&lt;br /&gt;
&lt;br /&gt;
== Playlist folder location ==&lt;br /&gt;
The playlists should be placed into a folder named “music“, “mixed” or “video” in the following location:&lt;br /&gt;
* &#039;&#039;&#039;Windows XP:&#039;&#039;&#039; &amp;lt;code&amp;gt;Documents and Settings\&amp;lt;your_user_name&amp;gt;\Application Data\Kodi\userdata\playlists\&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Vista/Windows 7:&#039;&#039;&#039; &amp;lt;code&amp;gt;Users\&amp;lt;your_user_name&amp;gt;\AppData\Roaming\Kodi\userdata\playlists\&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Mac OS X:&#039;&#039;&#039; &amp;lt;code&amp;gt;/Users/&amp;lt;your_user_name&amp;gt;/Library/Application Support/Kodi/userdata/playlists/&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;iOS:&#039;&#039;&#039; &amp;lt;code&amp;gt;/private/var/mobile/Library/Preferences/Kodi/userdata/playlists/&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Linux:&#039;&#039;&#039; &amp;lt;code&amp;gt;$HOME/.Kodi/userdata/playlists/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Helix updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:Music library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123313</id>
		<title>NFO files/Movies</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123313"/>
		<updated>2016-07-02T08:34:08Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Explanation for credits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[NFO files]]}}&lt;br /&gt;
=== Video .nfo Files containing XML data ===&lt;br /&gt;
1. The *.nfo file is an XML file containing the data for inclusion in the library.&lt;br /&gt;
&lt;br /&gt;
movie.nfo will override all and any .nfo files in the same folder as the media files if you use the &amp;quot;Use foldernames for lookups&amp;quot; setting. If you don&#039;t, then moviename.nfo is used.&lt;br /&gt;
If there is only one .nfo file in a folder, The scraper will use it for all media files in that folder. If there are multiple media files in a folder, the *.nfo should be named exactly the same as the video file it is representing (ie. &#039;&#039;&#039;moviename.avi&#039;&#039;&#039; and &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=&amp;quot;stacking note&amp;quot; /&amp;gt;{{note|In the case of multi-part (stacked) video &#039;&#039;&#039;[[file stacking]]&#039;&#039;&#039;, name the file either &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039; or &#039;&#039;&#039;moviename-CD1.nfo&#039;&#039;&#039; where the first filename is &#039;&#039;&#039;moviename-CD1.avi&#039;&#039;&#039;.}}&amp;lt;section end=&amp;quot;stacking note&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|If your movie is ripped as VOB&#039;s and stored in a &#039;VIDEO_TS&#039; folder, you will have to name the file &#039;VIDEO_TS.nfo&#039; and place it in the same directory with the VIDEO_TS.ifo file.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally the &#039;set&#039; tag can be used to help sort movies that are [[Movie Sets|part of a series or collection]] (ie Harry Potter, James Bond films). This sort of collection tagging must be done in the .NFO file before the movie is scanned into the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Who knows&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;originaltitle&amp;gt;Who knows for real&amp;lt;/originaltitle&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Who knows 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Who knows trilogy&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;rating&amp;gt;6.100000&amp;lt;/rating&amp;gt;&lt;br /&gt;
        &amp;lt;year&amp;gt;2008&amp;lt;/year&amp;gt;&lt;br /&gt;
        &amp;lt;top250&amp;gt;0&amp;lt;/top250&amp;gt;&lt;br /&gt;
        &amp;lt;votes&amp;gt;50&amp;lt;/votes&amp;gt;&lt;br /&gt;
        &amp;lt;outline&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/outline&amp;gt;&amp;lt;!-- Should be short, will be displayed on a single line. --&amp;gt;&lt;br /&gt;
        &amp;lt;plot&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/plot&amp;gt; &amp;lt;!-- Can contain more information on multiple lines, will be wrapped. --&amp;gt;&lt;br /&gt;
        &amp;lt;tagline&amp;gt;&amp;lt;/tagline&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;90&amp;lt;/runtime&amp;gt; //runtime in minutes&lt;br /&gt;
        &amp;lt;thumb&amp;gt;http://ia.ec.imdb.com/media/imdb/01/I/25/65/31/10f.jpg&amp;lt;/thumb&amp;gt;&lt;br /&gt;
        &amp;lt;mpaa&amp;gt;Not available&amp;lt;/mpaa&amp;gt;&lt;br /&gt;
        &amp;lt;playcount&amp;gt;0&amp;lt;/playcount&amp;gt;&amp;lt;!-- setting this to &amp;gt; 0 will mark the movie as watched if the &amp;quot;importwatchedstate&amp;quot; flag is set in advancedsettings.xml --&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;tt0432337&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;filenameandpath&amp;gt;c:\Dummy_Movie_Files\Movies\...So Goes The Nation.avi&amp;lt;/filenameandpath&amp;gt;&lt;br /&gt;
        &amp;lt;trailer&amp;gt;&amp;lt;/trailer&amp;gt;&lt;br /&gt;
        &amp;lt;genre&amp;gt;&amp;lt;/genre&amp;gt;&lt;br /&gt;
        &amp;lt;credits&amp;gt;&amp;lt;/credits&amp;gt; &amp;lt;!-- Library exports uses this field for writers.--&amp;gt;&lt;br /&gt;
        &amp;lt;fileinfo&amp;gt;&lt;br /&gt;
            &amp;lt;streamdetails&amp;gt; &amp;lt;!-- While it is possible to manually set the information contained within the &amp;quot;streamdetails&amp;quot; tag,there is little point in doing so, as the software will always overwrite this data when it plays back the video file. In other words, no matter how many times you try to manually set it, it will be undone the moment the video is played.--&amp;gt;&lt;br /&gt;
            &amp;lt;/streamdetails&amp;gt;&lt;br /&gt;
        &amp;lt;/fileinfo&amp;gt;&lt;br /&gt;
        &amp;lt;studio&amp;gt;Dummy Pictures&amp;lt;/studio&amp;gt;&lt;br /&gt;
        &amp;lt;director&amp;gt;Adam Del Deo&amp;lt;/director&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Paul Begala&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;George W. Bush&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Mary Beth Cahill&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Herself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Ed Gillespie&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;John Kerry&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a URL ===&lt;br /&gt;
2. The *.nfo file contains a URL of the information page to scrape.&lt;br /&gt;
The file can include other information (i.e. scene info), Kodi will scan through it and use a relevant URL if a match is found.&lt;br /&gt;
&lt;br /&gt;
The scraper tries to match URL&#039;s to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Moviename.nfo&amp;lt;/code&amp;gt; placed next to Moviename.avi where Moviename is the name of the movie file.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;movie.nfo&amp;lt;/code&amp;gt; if you use the &amp;quot;Use Foldername for Lookups&amp;quot; option, movie.nfo takes priority over any other .nfo files.&lt;br /&gt;
&lt;br /&gt;
If you use the &amp;quot;Movies are in separate folders that match the movie title&amp;quot; [[Set Contents (Video Library)#Options After Selecting Scraper|scraper setting]] Kodi will use the first nfo file it finds in the folder (other than the .nfo files described above) and apply it to any valid video file it finds in the same folder.&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a mix of XML and URL ===&lt;br /&gt;
You can also create .nfo files that contain both XML data and an URL.&lt;br /&gt;
This is useful for instance, if you want the entry in your database to have another name than the one officially provided by the scraper, for the movie to sort differently or the movie to be a part of a movie set.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Sin City (Recut, Extended, Unrated)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;147 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Star Wars (1977 Original Theatrical Release)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;121 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Star Wars Saga&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Star Wars1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0076759/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default the xml entry is &#039;&#039;&#039;added&#039;&#039;&#039; to the scraped entry in the database and may result in some duplicates. If you want to completely override the scraped result you need to set a clear attribute for the relevant xml tag in the .nfo file.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    &amp;lt;genre clear=&amp;quot;true&amp;quot;&amp;gt;Action&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Horror&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Thriller&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;director clear=&amp;quot;true&amp;quot;&amp;gt;Frank Miller&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Robert Rodriguez&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Quentin Tarantino&amp;lt;/director&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently supported tags for the clear attribute are genre, director, studio, actor, credits and artist for Music Videos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Movie sets ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
	&amp;lt;title&amp;gt;Hellboy - Uncut Extended&amp;lt;/title&amp;gt;&lt;br /&gt;
	&amp;lt;set&amp;gt;Hellboy Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
	&amp;lt;sorttitle&amp;gt;Hellboy 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.themoviedb.org/movie/1487&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Get the URL at the end by searching the movie on your favorite movie DB site (but you need a [[scraper]] for Kodi of this site) and copy the link from the address bar of the browser.&lt;br /&gt;
* Doing it this way has the advantage, to get all other information like cast, poster, fanart, rating, etc. automatically from the movie DB site, while being able to specify the exact title.&amp;lt;br /&amp;gt;&#039;&#039;This is especially helpful for example for the themoviedb.org, which does not recognise &amp;quot;Uncut&amp;quot;, &amp;quot;Extended Version&amp;quot;, etc. in the movie title.&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Only single movie sets are supported&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Editing the .NFO file ====&lt;br /&gt;
The two tags we’re interested in are shown on the [[NFO files/movies]] page, but not really explained. They are:&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;sorttitle&amp;gt;&#039;&#039;&#039;: This tag is used to give a secondary ’sort title’ that will be used to order the movies when sorting the movies by name. The easiest way to handle this is to just use “Die Hard 1″, &amp;quot;Die Hard 2″, etc. &lt;br /&gt;
Since Kodi also remembers views for different folders, you could also just sort this folder by movie year, rather than name, and achieve the same result.&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;set&amp;gt;&#039;&#039;&#039;: This tag is used to give a name to the set, or series, so that it can be listed in your Movies view.&lt;br /&gt;
&lt;br /&gt;
For the Die Hard example we would add the following tags to each .NFO file in the movie series.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sorttitle&amp;gt;Die Hard 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;set&amp;gt;Die Hard Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;Note that the sorttitle tag is an option tag that is not specific to sets. You only need it if you want your movies to sort by a different name other than their actual title. It is safe to leave it out if you would rather just use the date sort.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Movie tags ===&lt;br /&gt;
To add a movie to one or multiple tags an  [[NFO files|NFO file]] can be created and for every tag an XML tag can be added like this&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;tag&amp;gt;Name of the tag&amp;lt;/tag&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If there&#039;s no tag with the specified name it will be automatically created and the tag will be attached to the movie. A movie can be added to multiple tags by adding it multiple times.&lt;br /&gt;
&lt;br /&gt;
{{tip|See &#039;&#039;&#039;[[Video library tags]]&#039;&#039;&#039;}}&lt;br /&gt;
{{frodo updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Scraper]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123312</id>
		<title>NFO files/Movies</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123312"/>
		<updated>2016-07-02T08:20:38Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Add studio tag for completeness&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[NFO files]]}}&lt;br /&gt;
=== Video .nfo Files containing XML data ===&lt;br /&gt;
1. The *.nfo file is an XML file containing the data for inclusion in the library.&lt;br /&gt;
&lt;br /&gt;
movie.nfo will override all and any .nfo files in the same folder as the media files if you use the &amp;quot;Use foldernames for lookups&amp;quot; setting. If you don&#039;t, then moviename.nfo is used.&lt;br /&gt;
If there is only one .nfo file in a folder, The scraper will use it for all media files in that folder. If there are multiple media files in a folder, the *.nfo should be named exactly the same as the video file it is representing (ie. &#039;&#039;&#039;moviename.avi&#039;&#039;&#039; and &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=&amp;quot;stacking note&amp;quot; /&amp;gt;{{note|In the case of multi-part (stacked) video &#039;&#039;&#039;[[file stacking]]&#039;&#039;&#039;, name the file either &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039; or &#039;&#039;&#039;moviename-CD1.nfo&#039;&#039;&#039; where the first filename is &#039;&#039;&#039;moviename-CD1.avi&#039;&#039;&#039;.}}&amp;lt;section end=&amp;quot;stacking note&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|If your movie is ripped as VOB&#039;s and stored in a &#039;VIDEO_TS&#039; folder, you will have to name the file &#039;VIDEO_TS.nfo&#039; and place it in the same directory with the VIDEO_TS.ifo file.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally the &#039;set&#039; tag can be used to help sort movies that are [[Movie Sets|part of a series or collection]] (ie Harry Potter, James Bond films). This sort of collection tagging must be done in the .NFO file before the movie is scanned into the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Who knows&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;originaltitle&amp;gt;Who knows for real&amp;lt;/originaltitle&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Who knows 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Who knows trilogy&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;rating&amp;gt;6.100000&amp;lt;/rating&amp;gt;&lt;br /&gt;
        &amp;lt;year&amp;gt;2008&amp;lt;/year&amp;gt;&lt;br /&gt;
        &amp;lt;top250&amp;gt;0&amp;lt;/top250&amp;gt;&lt;br /&gt;
        &amp;lt;votes&amp;gt;50&amp;lt;/votes&amp;gt;&lt;br /&gt;
        &amp;lt;outline&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/outline&amp;gt;&amp;lt;!-- Should be short, will be displayed on a single line. --&amp;gt;&lt;br /&gt;
        &amp;lt;plot&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/plot&amp;gt; &amp;lt;!-- Can contain more information on multiple lines, will be wrapped. --&amp;gt;&lt;br /&gt;
        &amp;lt;tagline&amp;gt;&amp;lt;/tagline&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;90&amp;lt;/runtime&amp;gt; //runtime in minutes&lt;br /&gt;
        &amp;lt;thumb&amp;gt;http://ia.ec.imdb.com/media/imdb/01/I/25/65/31/10f.jpg&amp;lt;/thumb&amp;gt;&lt;br /&gt;
        &amp;lt;mpaa&amp;gt;Not available&amp;lt;/mpaa&amp;gt;&lt;br /&gt;
        &amp;lt;playcount&amp;gt;0&amp;lt;/playcount&amp;gt;&amp;lt;!-- setting this to &amp;gt; 0 will mark the movie as watched if the &amp;quot;importwatchedstate&amp;quot; flag is set in advancedsettings.xml --&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;tt0432337&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;filenameandpath&amp;gt;c:\Dummy_Movie_Files\Movies\...So Goes The Nation.avi&amp;lt;/filenameandpath&amp;gt;&lt;br /&gt;
        &amp;lt;trailer&amp;gt;&amp;lt;/trailer&amp;gt;&lt;br /&gt;
        &amp;lt;genre&amp;gt;&amp;lt;/genre&amp;gt;&lt;br /&gt;
        &amp;lt;credits&amp;gt;&amp;lt;/credits&amp;gt;&lt;br /&gt;
        &amp;lt;fileinfo&amp;gt;&lt;br /&gt;
            &amp;lt;streamdetails&amp;gt; &amp;lt;!-- While it is possible to manually set the information contained within the &amp;quot;streamdetails&amp;quot; tag,there is little point in doing so, as the software will always overwrite this data when it plays back the video file. In other words, no matter how many times you try to manually set it, it will be undone the moment the video is played.--&amp;gt;&lt;br /&gt;
            &amp;lt;/streamdetails&amp;gt;&lt;br /&gt;
        &amp;lt;/fileinfo&amp;gt;&lt;br /&gt;
        &amp;lt;studio&amp;gt;Dummy Pictures&amp;lt;/studio&amp;gt;&lt;br /&gt;
        &amp;lt;director&amp;gt;Adam Del Deo&amp;lt;/director&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Paul Begala&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;George W. Bush&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Mary Beth Cahill&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Herself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Ed Gillespie&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;John Kerry&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a URL ===&lt;br /&gt;
2. The *.nfo file contains a URL of the information page to scrape.&lt;br /&gt;
The file can include other information (i.e. scene info), Kodi will scan through it and use a relevant URL if a match is found.&lt;br /&gt;
&lt;br /&gt;
The scraper tries to match URL&#039;s to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Moviename.nfo&amp;lt;/code&amp;gt; placed next to Moviename.avi where Moviename is the name of the movie file.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;movie.nfo&amp;lt;/code&amp;gt; if you use the &amp;quot;Use Foldername for Lookups&amp;quot; option, movie.nfo takes priority over any other .nfo files.&lt;br /&gt;
&lt;br /&gt;
If you use the &amp;quot;Movies are in separate folders that match the movie title&amp;quot; [[Set Contents (Video Library)#Options After Selecting Scraper|scraper setting]] Kodi will use the first nfo file it finds in the folder (other than the .nfo files described above) and apply it to any valid video file it finds in the same folder.&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a mix of XML and URL ===&lt;br /&gt;
You can also create .nfo files that contain both XML data and an URL.&lt;br /&gt;
This is useful for instance, if you want the entry in your database to have another name than the one officially provided by the scraper, for the movie to sort differently or the movie to be a part of a movie set.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Sin City (Recut, Extended, Unrated)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;147 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Star Wars (1977 Original Theatrical Release)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;121 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Star Wars Saga&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Star Wars1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0076759/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default the xml entry is &#039;&#039;&#039;added&#039;&#039;&#039; to the scraped entry in the database and may result in some duplicates. If you want to completely override the scraped result you need to set a clear attribute for the relevant xml tag in the .nfo file.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    &amp;lt;genre clear=&amp;quot;true&amp;quot;&amp;gt;Action&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Horror&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Thriller&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;director clear=&amp;quot;true&amp;quot;&amp;gt;Frank Miller&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Robert Rodriguez&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Quentin Tarantino&amp;lt;/director&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently supported tags for the clear attribute are genre, director, studio, actor, credits and artist for Music Videos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Movie sets ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
	&amp;lt;title&amp;gt;Hellboy - Uncut Extended&amp;lt;/title&amp;gt;&lt;br /&gt;
	&amp;lt;set&amp;gt;Hellboy Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
	&amp;lt;sorttitle&amp;gt;Hellboy 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.themoviedb.org/movie/1487&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Get the URL at the end by searching the movie on your favorite movie DB site (but you need a [[scraper]] for Kodi of this site) and copy the link from the address bar of the browser.&lt;br /&gt;
* Doing it this way has the advantage, to get all other information like cast, poster, fanart, rating, etc. automatically from the movie DB site, while being able to specify the exact title.&amp;lt;br /&amp;gt;&#039;&#039;This is especially helpful for example for the themoviedb.org, which does not recognise &amp;quot;Uncut&amp;quot;, &amp;quot;Extended Version&amp;quot;, etc. in the movie title.&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Only single movie sets are supported&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Editing the .NFO file ====&lt;br /&gt;
The two tags we’re interested in are shown on the [[NFO files/movies]] page, but not really explained. They are:&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;sorttitle&amp;gt;&#039;&#039;&#039;: This tag is used to give a secondary ’sort title’ that will be used to order the movies when sorting the movies by name. The easiest way to handle this is to just use “Die Hard 1″, &amp;quot;Die Hard 2″, etc. &lt;br /&gt;
Since Kodi also remembers views for different folders, you could also just sort this folder by movie year, rather than name, and achieve the same result.&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;set&amp;gt;&#039;&#039;&#039;: This tag is used to give a name to the set, or series, so that it can be listed in your Movies view.&lt;br /&gt;
&lt;br /&gt;
For the Die Hard example we would add the following tags to each .NFO file in the movie series.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sorttitle&amp;gt;Die Hard 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;set&amp;gt;Die Hard Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;Note that the sorttitle tag is an option tag that is not specific to sets. You only need it if you want your movies to sort by a different name other than their actual title. It is safe to leave it out if you would rather just use the date sort.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Movie tags ===&lt;br /&gt;
To add a movie to one or multiple tags an  [[NFO files|NFO file]] can be created and for every tag an XML tag can be added like this&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;tag&amp;gt;Name of the tag&amp;lt;/tag&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If there&#039;s no tag with the specified name it will be automatically created and the tag will be attached to the movie. A movie can be added to multiple tags by adding it multiple times.&lt;br /&gt;
&lt;br /&gt;
{{tip|See &#039;&#039;&#039;[[Video library tags]]&#039;&#039;&#039;}}&lt;br /&gt;
{{frodo updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Scraper]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123311</id>
		<title>NFO files/Movies</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=NFO_files/Movies&amp;diff=123311"/>
		<updated>2016-07-01T22:00:56Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Explanation of outline and plot differences.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[NFO files]]}}&lt;br /&gt;
=== Video .nfo Files containing XML data ===&lt;br /&gt;
1. The *.nfo file is an XML file containing the data for inclusion in the library.&lt;br /&gt;
&lt;br /&gt;
movie.nfo will override all and any .nfo files in the same folder as the media files if you use the &amp;quot;Use foldernames for lookups&amp;quot; setting. If you don&#039;t, then moviename.nfo is used.&lt;br /&gt;
If there is only one .nfo file in a folder, The scraper will use it for all media files in that folder. If there are multiple media files in a folder, the *.nfo should be named exactly the same as the video file it is representing (ie. &#039;&#039;&#039;moviename.avi&#039;&#039;&#039; and &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=&amp;quot;stacking note&amp;quot; /&amp;gt;{{note|In the case of multi-part (stacked) video &#039;&#039;&#039;[[file stacking]]&#039;&#039;&#039;, name the file either &#039;&#039;&#039;moviename.nfo&#039;&#039;&#039; or &#039;&#039;&#039;moviename-CD1.nfo&#039;&#039;&#039; where the first filename is &#039;&#039;&#039;moviename-CD1.avi&#039;&#039;&#039;.}}&amp;lt;section end=&amp;quot;stacking note&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|If your movie is ripped as VOB&#039;s and stored in a &#039;VIDEO_TS&#039; folder, you will have to name the file &#039;VIDEO_TS.nfo&#039; and place it in the same directory with the VIDEO_TS.ifo file.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally the &#039;set&#039; tag can be used to help sort movies that are [[Movie Sets|part of a series or collection]] (ie Harry Potter, James Bond films). This sort of collection tagging must be done in the .NFO file before the movie is scanned into the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Who knows&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;originaltitle&amp;gt;Who knows for real&amp;lt;/originaltitle&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Who knows 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Who knows trilogy&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;rating&amp;gt;6.100000&amp;lt;/rating&amp;gt;&lt;br /&gt;
        &amp;lt;year&amp;gt;2008&amp;lt;/year&amp;gt;&lt;br /&gt;
        &amp;lt;top250&amp;gt;0&amp;lt;/top250&amp;gt;&lt;br /&gt;
        &amp;lt;votes&amp;gt;50&amp;lt;/votes&amp;gt;&lt;br /&gt;
        &amp;lt;outline&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/outline&amp;gt;&amp;lt;!-- Should be short, will be displayed on a single line. --&amp;gt;&lt;br /&gt;
        &amp;lt;plot&amp;gt;A look at the role of the Buckeye State in the 2004 Presidential Election.&amp;lt;/plot&amp;gt; &amp;lt;!-- Can contain more information on multiple lines, will be wrapped. --&amp;gt;&lt;br /&gt;
        &amp;lt;tagline&amp;gt;&amp;lt;/tagline&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;90&amp;lt;/runtime&amp;gt; //runtime in minutes&lt;br /&gt;
        &amp;lt;thumb&amp;gt;http://ia.ec.imdb.com/media/imdb/01/I/25/65/31/10f.jpg&amp;lt;/thumb&amp;gt;&lt;br /&gt;
        &amp;lt;mpaa&amp;gt;Not available&amp;lt;/mpaa&amp;gt;&lt;br /&gt;
        &amp;lt;playcount&amp;gt;0&amp;lt;/playcount&amp;gt;&amp;lt;!-- setting this to &amp;gt; 0 will mark the movie as watched if the &amp;quot;importwatchedstate&amp;quot; flag is set in advancedsettings.xml --&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;tt0432337&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;filenameandpath&amp;gt;c:\Dummy_Movie_Files\Movies\...So Goes The Nation.avi&amp;lt;/filenameandpath&amp;gt;&lt;br /&gt;
        &amp;lt;trailer&amp;gt;&amp;lt;/trailer&amp;gt;&lt;br /&gt;
        &amp;lt;genre&amp;gt;&amp;lt;/genre&amp;gt;&lt;br /&gt;
        &amp;lt;credits&amp;gt;&amp;lt;/credits&amp;gt;&lt;br /&gt;
        &amp;lt;fileinfo&amp;gt;&lt;br /&gt;
            &amp;lt;streamdetails&amp;gt; &amp;lt;!-- While it is possible to manually set the information contained within the &amp;quot;streamdetails&amp;quot; tag,there is little point in doing so, as the software will always overwrite this data when it plays back the video file. In other words, no matter how many times you try to manually set it, it will be undone the moment the video is played.--&amp;gt;&lt;br /&gt;
            &amp;lt;/streamdetails&amp;gt;&lt;br /&gt;
        &amp;lt;/fileinfo&amp;gt;&lt;br /&gt;
        &amp;lt;director&amp;gt;Adam Del Deo&amp;lt;/director&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Paul Begala&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;George W. Bush&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Mary Beth Cahill&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Herself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;Ed Gillespie&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
        &amp;lt;actor&amp;gt;&lt;br /&gt;
            &amp;lt;name&amp;gt;John Kerry&amp;lt;/name&amp;gt;&lt;br /&gt;
            &amp;lt;role&amp;gt;Himself&amp;lt;/role&amp;gt;&lt;br /&gt;
        &amp;lt;/actor&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a URL ===&lt;br /&gt;
2. The *.nfo file contains a URL of the information page to scrape.&lt;br /&gt;
The file can include other information (i.e. scene info), Kodi will scan through it and use a relevant URL if a match is found.&lt;br /&gt;
&lt;br /&gt;
The scraper tries to match URL&#039;s to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Moviename.nfo&amp;lt;/code&amp;gt; placed next to Moviename.avi where Moviename is the name of the movie file.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;movie.nfo&amp;lt;/code&amp;gt; if you use the &amp;quot;Use Foldername for Lookups&amp;quot; option, movie.nfo takes priority over any other .nfo files.&lt;br /&gt;
&lt;br /&gt;
If you use the &amp;quot;Movies are in separate folders that match the movie title&amp;quot; [[Set Contents (Video Library)#Options After Selecting Scraper|scraper setting]] Kodi will use the first nfo file it finds in the folder (other than the .nfo files described above) and apply it to any valid video file it finds in the same folder.&lt;br /&gt;
&lt;br /&gt;
=== Video .nfo files containing a mix of XML and URL ===&lt;br /&gt;
You can also create .nfo files that contain both XML data and an URL.&lt;br /&gt;
This is useful for instance, if you want the entry in your database to have another name than the one officially provided by the scraper, for the movie to sort differently or the movie to be a part of a movie set.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Sin City (Recut, Extended, Unrated)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;147 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;movie&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Star Wars (1977 Original Theatrical Release)&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;runtime&amp;gt;121 min.&amp;lt;/runtime&amp;gt;&lt;br /&gt;
        &amp;lt;set&amp;gt;Star Wars Saga&amp;lt;/set&amp;gt;&lt;br /&gt;
        &amp;lt;sorttitle&amp;gt;Star Wars1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
    &amp;lt;/movie&amp;gt;&lt;br /&gt;
    http://www.imdb.com/title/tt0076759/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default the xml entry is &#039;&#039;&#039;added&#039;&#039;&#039; to the scraped entry in the database and may result in some duplicates. If you want to completely override the scraped result you need to set a clear attribute for the relevant xml tag in the .nfo file.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    &amp;lt;genre clear=&amp;quot;true&amp;quot;&amp;gt;Action&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Horror&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;genre&amp;gt;Thriller&amp;lt;/genre&amp;gt;&lt;br /&gt;
    &amp;lt;director clear=&amp;quot;true&amp;quot;&amp;gt;Frank Miller&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Robert Rodriguez&amp;lt;/director&amp;gt;&lt;br /&gt;
    &amp;lt;director&amp;gt;Quentin Tarantino&amp;lt;/director&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.imdb.com/title/tt0401792/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently supported tags for the clear attribute are genre, director, studio, actor, credits and artist for Music Videos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Movie sets ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
	&amp;lt;title&amp;gt;Hellboy - Uncut Extended&amp;lt;/title&amp;gt;&lt;br /&gt;
	&amp;lt;set&amp;gt;Hellboy Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
	&amp;lt;sorttitle&amp;gt;Hellboy 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
http://www.themoviedb.org/movie/1487&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Get the URL at the end by searching the movie on your favorite movie DB site (but you need a [[scraper]] for Kodi of this site) and copy the link from the address bar of the browser.&lt;br /&gt;
* Doing it this way has the advantage, to get all other information like cast, poster, fanart, rating, etc. automatically from the movie DB site, while being able to specify the exact title.&amp;lt;br /&amp;gt;&#039;&#039;This is especially helpful for example for the themoviedb.org, which does not recognise &amp;quot;Uncut&amp;quot;, &amp;quot;Extended Version&amp;quot;, etc. in the movie title.&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Only single movie sets are supported&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Editing the .NFO file ====&lt;br /&gt;
The two tags we’re interested in are shown on the [[NFO files/movies]] page, but not really explained. They are:&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;sorttitle&amp;gt;&#039;&#039;&#039;: This tag is used to give a secondary ’sort title’ that will be used to order the movies when sorting the movies by name. The easiest way to handle this is to just use “Die Hard 1″, &amp;quot;Die Hard 2″, etc. &lt;br /&gt;
Since Kodi also remembers views for different folders, you could also just sort this folder by movie year, rather than name, and achieve the same result.&lt;br /&gt;
* &#039;&#039;&#039;&amp;amp;lt;set&amp;gt;&#039;&#039;&#039;: This tag is used to give a name to the set, or series, so that it can be listed in your Movies view.&lt;br /&gt;
&lt;br /&gt;
For the Die Hard example we would add the following tags to each .NFO file in the movie series.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sorttitle&amp;gt;Die Hard 1&amp;lt;/sorttitle&amp;gt;&lt;br /&gt;
&amp;lt;set&amp;gt;Die Hard Collection&amp;lt;/set&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;Note that the sorttitle tag is an option tag that is not specific to sets. You only need it if you want your movies to sort by a different name other than their actual title. It is safe to leave it out if you would rather just use the date sort.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Movie tags ===&lt;br /&gt;
To add a movie to one or multiple tags an  [[NFO files|NFO file]] can be created and for every tag an XML tag can be added like this&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;movie&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;tag&amp;gt;Name of the tag&amp;lt;/tag&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/movie&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If there&#039;s no tag with the specified name it will be automatically created and the tag will be attached to the movie. A movie can be added to multiple tags by adding it multiple times.&lt;br /&gt;
&lt;br /&gt;
{{tip|See &#039;&#039;&#039;[[Video library tags]]&#039;&#039;&#039;}}&lt;br /&gt;
{{frodo updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Scraper]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=123275</id>
		<title>MySQL/Advanced notes</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=123275"/>
		<updated>2016-06-26T11:52:07Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Update information on multiple profiles&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==advancedsettings.xml==&lt;br /&gt;
For a full listing of the advancedsettings.xml parameters, see [[advancedsettings.xml#&amp;lt;musicdatabase&amp;gt;/&amp;lt;videodatabase&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MySQL speed-up tweaks==&lt;br /&gt;
For Kodi/XBMC ≤ v12 (Frodo) and/or MySQL 5.0 or lower: with MyISAM as the default storage engine, the following tweaks are necessary:&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://xbmcstuff.bossanova808.net/2011/03/summary-of-xbmc-mysql-database.html?m=1 MySQL speed-up tweaks for Kodi/XBMC] - See Comments for more information.&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://forum.kodi.tv/showthread.php?tid=212806&amp;amp;pid=1875330#pid1875330 More MySQL speed-up tweaks for Kodi/XBMC]&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
For MySQL 5.5 or latest: with InnoDB as the default storage engine and/or v13 (Gotham)/Kodi+ only the following two tweaks are necessary.&lt;br /&gt;
=== In advancedsettings.xml: ===&lt;br /&gt;
Use the IP address and NOT the hostname of your MySQL server&amp;lt;br /&amp;gt;&lt;br /&gt;
eg.: 192.168.1.105 &amp;lt;&amp;lt;IP address&amp;gt;&amp;gt; instead of \\SERVER &lt;br /&gt;
&lt;br /&gt;
=== In my.cnf (my.ini for older versions): ===&lt;br /&gt;
The named file is located at /etc/mysql/my{{dot}}cnf&amp;lt;br /&amp;gt;&lt;br /&gt;
1. $sudo nano /etc/mysql/my{{dot}}cnf&amp;lt;br /&amp;gt;&lt;br /&gt;
2. Scroll down to &#039;&#039;&#039;[mysqld]&#039;&#039;&#039; section and add:&amp;lt;br /&amp;gt;&lt;br /&gt;
# skip-name-resolve&amp;lt;br /&amp;gt;&lt;br /&gt;
3. Press Ctrl+X, type y and hit Enter to validate changes and exit nano&amp;lt;br /&amp;gt;&lt;br /&gt;
4. Restart your MySQL server. $sudo restart mysql&lt;br /&gt;
&lt;br /&gt;
[[File:mysql.PNG|400px]]&lt;br /&gt;
&lt;br /&gt;
==Automated Backup ==&lt;br /&gt;
=== Windows ===&lt;br /&gt;
This will allow you to make a regular backup of your MySQL database using the schedule of your choosing and saving the backups for however many days you choose. Recommend performing daily backups and saving for a minimum of 7 days. This will give you enough time to discover a problem with the DB and restore to a previous version that did not have problems. &lt;br /&gt;
&lt;br /&gt;
To begin, go ahead and download the [http://www.7-zip.org/download.html command line version of 7zip]. We will use this to compress our MySQL dumps. Create a new folder in your C directory named KODISQLBACKUP. So you should have a C:\KODISQLBACKUP\ location now. In this location, create another new folder and name it zip. So you should now have C:\KODISQLBACKUP\zip. Extract the contents of the 7zip download to this location. Once complete you should have:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;C:\KODISQLBACKUP\zip\7za.exe&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\7-zip.chm&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\license.txt&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\readme.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We&#039;re going to create a down and dirty batch file to perform the actual backup, then we&#039;ll execute the batch script with the task scheduler built into Windows. For the purpose of these instructions, it is assumed that you are running MySQL 5.5 installed to the default location. If not, be sure to adjust your path(s) accordingly. It&#039;s also a good idea to save your backups to a network location to protect against local drive failure, so the paths here will reflect this. So here are the batch file contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;winbatch&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
:: All lines that start with 2 colons are comments, they do not affect the script itself. These comments are explanations of each command, as well as instructions for the things that you will need to edit. Pay close attention to all comments.&lt;br /&gt;
&lt;br /&gt;
:: These lines do not NEED to be edited&lt;br /&gt;
set year=%DATE:~10,4%&lt;br /&gt;
set day=%DATE:~7,2%&lt;br /&gt;
set mnt=%DATE:~4,2%&lt;br /&gt;
set hr=%TIME:~0,2%&lt;br /&gt;
set min=%TIME:~3,2%&lt;br /&gt;
&lt;br /&gt;
IF %day% LSS 10 SET day=0%day:~1,1%&lt;br /&gt;
IF %mnt% LSS 10 SET mnt=0%mnt:~1,1%&lt;br /&gt;
IF %hr% LSS 10 SET hr=0%hr:~1,1%&lt;br /&gt;
IF %min% LSS 10 SET min=0%min:~1,1%&lt;br /&gt;
&lt;br /&gt;
set backuptime=%mnt%-%day%-%year%-%hr%-%min%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: User name for DB - NOTE that root credentials are needed for this script.&lt;br /&gt;
set dbuser=root&lt;br /&gt;
&lt;br /&gt;
:: User password - NOTE that the root credentials are needed for this script.&lt;br /&gt;
set dbpass=password&lt;br /&gt;
&lt;br /&gt;
:: Path to location where you would like to save the errors log file. For simplicity, I keep mine in the same location as the backups.&lt;br /&gt;
set errorLogPath=&amp;quot;\\REMOTE\KODI_Database\backups\dumperrors.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:: We need to switch to the data directory to enumerate the folders&lt;br /&gt;
pushd &amp;quot;C:\ProgramData\MySQL\MySQL Server 5.5\data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: We will dump each database to it&#039;s own .sql so you can easily restore ONLY what is needed in the future. We&#039;re also going to skip the performance_schema db as it is not necessary.&lt;br /&gt;
&lt;br /&gt;
FOR /D %%F IN (*) DO (&lt;br /&gt;
&lt;br /&gt;
IF NOT [%%F]==[performance_schema] (&lt;br /&gt;
SET %%F=!%%F:@002d=-!&lt;br /&gt;
&amp;quot;C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe&amp;quot; --user=%dbuser% --password=%dbpass% --databases --routines --log-error=%errorLogPath%  %%F &amp;gt; &amp;quot;\\REMOTE\KODI_Database\backups\%%F.%backuptime%.sql&amp;quot;&lt;br /&gt;
) ELSE (&lt;br /&gt;
echo Skipping DB backup for performance_schema&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
::Now to zip all of the .sql files in this folder and move the resulting .zip files to our network location.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\KODISQLBACKUP\zip\7za.exe&amp;quot; a -tzip &amp;quot;\\REMOTE\KODI_Database\backups\FullBackup.%backuptime%.zip&amp;quot; &amp;quot;\\REMOTE\KODI_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete the unzipped .sql files&lt;br /&gt;
&lt;br /&gt;
del &amp;quot;\\REMOTE\KODI_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete all zip files older than 30 days. You can adjust the number of days to suit your needs, simply change the -30 to whatever number of days you prefer. Be sure you enter the path to your backup location.&lt;br /&gt;
Forfiles -p \\REMOTE\KODI_Database\backups\ -s -m *.* -d -30 -c &amp;quot;cmd /c del /q @path&amp;quot;&lt;br /&gt;
&lt;br /&gt;
popd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save this as Kodibackup.bat at C:\KODISQLBACKUP&lt;br /&gt;
Make &#039;&#039;sure&#039;&#039; you include the .bat at the end.&lt;br /&gt;
&lt;br /&gt;
After you have edited the above batch file to reflect your paths and saved it as a batch file, all that is left is scheduling it to run. Daily backups are best, but you can use whatever frequency you are comfortable with. To do this, open up the Windows Task Scheduler.&lt;br /&gt;
&lt;br /&gt;
In the Task Scheduler click on &amp;quot;Create Task...&amp;quot;, NOT &amp;quot;Create Basic Task...&amp;quot;. In the new task window, in the Name box put Kodi MySQL backup (or whatever name you want). &lt;br /&gt;
&lt;br /&gt;
Then click on the Triggers tab, followed by the New button. Select Daily (or whatever you want) and adjust the time you would like it to run. Click OK.&lt;br /&gt;
&lt;br /&gt;
Click on the Actions tab and click New. In the Program/Script box enter C:\KODISQLBACKUP\Kodibackup.bat (or whatever you named your batch file) and in the start in box enter C:\KODISQLBACKUP&lt;br /&gt;
&lt;br /&gt;
Click ok, then click ok in the task window. In the main task scheduler window, right click on the task you just created and select run. If everything works as it should, you should now have a zipped backup of your database(s) in your backup location. It will now do this for you automatically.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
[http://sourceforge.net/projects/automysqlbackup/ AutoMySQLBackup] is a script that is designed to keep daily, weekly and monthly backups of your databases.  It is very customizable and reliable.  There is useful information on installing and configuring the script here: http://www.linux.com/learn/tutorials/659107-how-to-do-painless-mysql-server-backups-with-automysqlbackup.&lt;br /&gt;
{{note|Detailed instructions on configuring AutoMySQLBackup should probably be added to this section as the linked page above could be deleted at any time and there is little beginner friendly information available on the web.}}&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
{{#lst:MySQL/Setting up Kodi|name tag}}&lt;br /&gt;
&lt;br /&gt;
==Multiple profiles with one MySQL database==&lt;br /&gt;
The idea is to share information on files in the library (only scrape once) but have individual watch status for every profile. For information see the forum thread [http://forum.kodi.tv/showthread.php?tid=196821 [MYSQL&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; HOW-TO: 5 User XBMC] and for a setup for Kodi v16 see [http://forum.kodi.tv/showthread.php?tid=196821&amp;amp;pid=2280431#pid2280431 this post]. An older setup can be found at: http://forum.kodi.tv/showthread.php?tid=81095&amp;amp;pid=840499#pid840499&lt;br /&gt;
&lt;br /&gt;
{{Isengard updated}}&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123019</id>
		<title>Archive:HEVC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123019"/>
		<updated>2016-06-06T11:13:43Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: minor typo correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;[[w:High Efficiency Video Coding|HEVC]]&#039;&#039;&#039; (High Efficiency Video Coding, sometimes called &#039;&#039;H.265&#039;&#039;) is a new video compression format and is the successor of H.264. It was formalized on the 25th of November 2013 and published as [http://www.iso.org/iso/catalogue_detail.htm?csnumber=35424 ISO/IEC 23008-2:2013]. An open source HEVC decoder and encoder ([http://x265.org/ x265]) has been developed and is widely adopted.&lt;br /&gt;
&lt;br /&gt;
== Support in {{kodi}} ==&lt;br /&gt;
Kodi v14 ([[Kodi v14 (Helix) changelog|changelog]]) now has software decoding support for HEVC. Kodi v15 ([[Kodi v15 (Isengard) changelog|changelog]]) introduced limited hardware decoding support for some devices, such as a few Android-based video decoders, for Linux on [[Amlogic]] SoCs and for Windows via DXVA. Kodi v16 ([[Kodi v16 (Jarvis) changelog|changelog]]) further improved hardware decoding on Android and Windows and introduced it via [[wikipedia:VAAPI|VAAPI]] and [[wikipedia:VDPAU|VDPAU]] API on linux. Most HTPCs do not have hardware decoding support for HEVC, so they will need a fairly powerful desktop class CPU in order to playback HEVC videos.&lt;br /&gt;
&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
{{Updated|16}}&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123017</id>
		<title>Archive:HEVC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123017"/>
		<updated>2016-06-06T11:10:44Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: update x265 project status&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;[[w:High Efficiency Video Coding|HEVC]]&#039;&#039;&#039; (High Efficiency Video Coding, sometimes called &#039;&#039;H.265&#039;&#039;) is a new video compression format and is the successor of H.264. It was formalized on the 25th of November 2013 and published as [http://www.iso.org/iso/catalogue_detail.htm?csnumber=35424 ISO/IEC 23008-2:2013]. An open source HEVC decoder and encoder ([http://x265.org/ x265]) has been developed and is widely adapted.&lt;br /&gt;
&lt;br /&gt;
== Support in {{kodi}} ==&lt;br /&gt;
Kodi v14 ([[Kodi v14 (Helix) changelog|changelog]]) now has software decoding support for HEVC. Kodi v15 ([[Kodi v15 (Isengard) changelog|changelog]]) introduced limited hardware decoding support for some devices, such as a few Android-based video decoders, for Linux on [[Amlogic]] SoCs and for Windows via DXVA. Kodi v16 ([[Kodi v16 (Jarvis) changelog|changelog]]) further improved hardware decoding on Android and Windows and introduced it via [[wikipedia:VAAPI|VAAPI]] and [[wikipedia:VDPAU|VDPAU]] API on linux. Most HTPCs do not have hardware decoding support for HEVC, so they will need a fairly powerful desktop class CPU in order to playback HEVC videos.&lt;br /&gt;
&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
{{Updated|16}}&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123012</id>
		<title>Archive:HEVC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:HEVC&amp;diff=123012"/>
		<updated>2016-06-06T11:07:58Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Update information to Jarvis&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;[[w:High Efficiency Video Coding|HEVC]]&#039;&#039;&#039; (High Efficiency Video Coding, sometimes called &#039;&#039;H.265&#039;&#039;) is a new video compression format and is the successor of H.264. It was formalized on the 25th of November 2013 and published as [http://www.iso.org/iso/catalogue_detail.htm?csnumber=35424 ISO/IEC 23008-2:2013]. Work on the open source HEVC decoder and encoder ([http://x265.org/ x265]) is still being done, but a proposed implementation of the codec has been made available.&lt;br /&gt;
&lt;br /&gt;
== Support in {{kodi}} ==&lt;br /&gt;
Kodi v14 ([[Kodi v14 (Helix) changelog|changelog]]) now has software decoding support for HEVC. Kodi v15 ([[Kodi v15 (Isengard) changelog|changelog]]) introduced limited hardware decoding support for some devices, such as a few Android-based video decoders, for Linux on [[Amlogic]] SoCs and for Windows via DXVA. Kodi v16 ([[Kodi v16 (Jarvis) changelog|changelog]]) further improved hardware decoding on Android and Windows and introduced it via [[wikipedia:VAAPI|VAAPI]] and [[wikipedia:VDPAU|VDPAU]] API on linux. Most HTPCs do not have hardware decoding support for HEVC, so they will need a fairly powerful desktop class CPU in order to playback HEVC videos.&lt;br /&gt;
&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
{{Updated|16}}&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Smartphone/tablet_remotes&amp;diff=123005</id>
		<title>Smartphone/tablet remotes</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Smartphone/tablet_remotes&amp;diff=123005"/>
		<updated>2016-06-04T23:56:50Z</updated>

		<summary type="html">&lt;p&gt;Imsodin: Add information regarding ports/firewall&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Remote controls]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;{{Kodi}} can be controlled in several different ways, including both a physical remote control as well as using your smartphone or tablet. This page will link to both the official Team Kodi remote control apps and additional remote apps made by the community, as well as tell you how to enable smartphone/tablet app control in Kodi.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Remote apps ==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;nav&amp;quot; /&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Kore now playing nexus6.png|64px|link=Category:Smartphone and tablet remotes]] || &amp;lt;big&amp;gt;&#039;&#039;&#039;Smartphone and tablet remote controls&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
* [[Official Kodi Remote]]&lt;br /&gt;
* [[Android remotes]]&lt;br /&gt;
* [[iOS remotes]]&lt;br /&gt;
* [[Windows Phone remotes]]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;nav&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Quick set up guide ==&lt;br /&gt;
{{Main|Settings/Services}}&lt;br /&gt;
Turn on the following settings in {{kodi}} to enable using a smartphone or tablet remote:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{highlight|bordered=yes|[[Settings/Services#Remote control|Settings → Services → Remote control → &#039;&#039;&#039;Allow programs on other systems to control Kodi&#039;&#039;&#039; → {{color|green|&#039;&#039;&#039;ON&#039;&#039;&#039;}} ]] }}&lt;br /&gt;
:This setting enables the basic ability to remotely control Kodi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{highlight|bordered=yes|[[Settings/Services#Webserver|Settings → Services → Webserver → &#039;&#039;&#039;Allow control of Kodi via HTTP&#039;&#039;&#039; → {{color|green|&#039;&#039;&#039;ON&#039;&#039;&#039;}} ]] }} &lt;br /&gt;
:Many smartphone remotes also display additional library data, such as images and summaries. This setting allows that extra data to be transmitted to your remote app.&lt;br /&gt;
:Take note of the Port number, the Username and the Password (if any). You&#039;ll probably need to enter these in your remote app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{highlight|bordered=yes|[[Settings/Services#Zeroconf|Settings → Services → Zeroconf → &#039;&#039;&#039;Announce these services to other systems via Zeroconf&#039;&#039;&#039; → {{color|green|&#039;&#039;&#039;ON&#039;&#039;&#039;}} ]] }}&lt;br /&gt;
:This should be enabled by default already. Zeroconf makes it easier to find your Kodi install on your local network without having to know the exact IP address.&lt;br /&gt;
&lt;br /&gt;
== Manually enabling remote control ==&lt;br /&gt;
{{See also|Web interface#Manually enabling remote control}}&lt;br /&gt;
{{#lst:Web interface|manual}}&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
If there is a firewall between the smartphone or tablet and the device running Kodi or on this device itself, you need to open two ports to enable remote control. The first one is the port of the [[Settings/Services/Webserver|http server]] which is 8080/tcp unless otherwise configured. The second port is the Kodi event port 9777/udp. Many remotes work without the second port, but have limited functionality (e.g. keyboard does not pop up automatically when required). Others like [[Yatse]] do not work at all without it.&lt;br /&gt;
&lt;br /&gt;
{{updated|16}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Smartphone and tablet remotes|*]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
[[Category:Index]]&lt;/div&gt;</summary>
		<author><name>Imsodin</name></author>
	</entry>
</feed>