Difference between revisions of "Favourites.xml"

From Official Kodi Wiki
Jump to: navigation, search
(Updated for v18)
m (syntaxhighlighter fix)
 
Line 11: Line 11:
 
'''Example: '''
 
'''Example: '''
 
The format of the favourites.xml is as follows. The example shows Playlist, TV Show, TV Episode, Artist, Album and Add-on.
 
The format of the favourites.xml is as follows. The example shows Playlist, TV Show, TV Episode, Artist, Album and Add-on.
<syntaxhighlight lang="XML" enclose="div">
+
<syntaxhighlight lang=xml enclose="div">
 
<favourites>
 
<favourites>
 
     <favourite name="Marvel Universe">ActivateWindow(10025,&quot;special://profile/playlists/video/Marvel Universe.xsp&quot;,return)</favourite>
 
     <favourite name="Marvel Universe">ActivateWindow(10025,&quot;special://profile/playlists/video/Marvel Universe.xsp&quot;,return)</favourite>
Line 28: Line 28:
 
Change the name of any item by amending the ''<fabourite name="">'' section.
 
Change the name of any item by amending the ''<fabourite name="">'' section.
  
<syntaxhighlight lang="XML" enclose="div">
+
<syntaxhighlight lang=xml enclose="div">
 
<favourites>
 
<favourites>
 
     <favourite name="Enter Desired name here" thumb="http://static.ddmcdn.com/gif/videos/120x90/52447.jpg">PlayMedia(&quot;plugin://plugin.video.howstuffworks_com/?url=52447&amp;mode=playVideo&quot;)</favourite>
 
     <favourite name="Enter Desired name here" thumb="http://static.ddmcdn.com/gif/videos/120x90/52447.jpg">PlayMedia(&quot;plugin://plugin.video.howstuffworks_com/?url=52447&amp;mode=playVideo&quot;)</favourite>

Latest revision as of 12:33, 10 July 2018

Home icon grey.png   ▶ Userdata
▶ Favourites
▶ Favourites.xml

Developer documentation detailing the structure and modification of the favourites.xml file. For the User Guide about the favourites feature see Favourites.

1 Favourites via xml

The display order seen in the Favourites screen is determined by the order of the entries in the xml file. Adjust the order of the favourites in the file to modify the displayed order in Kodi.

The favourites.xml is located in the Userdata folder.


Example: The format of the favourites.xml is as follows. The example shows Playlist, TV Show, TV Episode, Artist, Album and Add-on.

<favourites>
    <favourite name="Marvel Universe">ActivateWindow(10025,&quot;special://profile/playlists/video/Marvel Universe.xsp&quot;,return)</favourite>
    <favourite name="Continuum" thumb="E:\TV Show- TEST\Continuum\thumb.jpg">ActivateWindow(10025,&quot;E:\\TV Show- TEST\\Continuum\\&quot;,return)</favourite>
    <favourite name="1x02. Fast Times" thumb="E:\TV Show- TEST\Continuum\Continuum S01E02-thumb.jpg">PlayMedia(&quot;E:\\TV Show- TEST\\Continuum\\Continuum S01E02.mkv&quot;)</favourite>
    <favourite name="Era" thumb="F:\Music\ArtistInfoKodi\Era\folder.jpg">ActivateWindow(10502,&quot;musicdb://artists/113/?albumartistsonly=false&quot;,return)</favourite>
    <favourite name="NextPVR PVR Client" thumb="F:\Kodi v18- Nightly\addons\pvr.nextpvr\icon.png">RunAddon(pvr.nextpvr)</favourite>
    <favourite name="TV Show- TEST">ActivateWindow(10025,&quot;E:\\TV Show- TEST\\&quot;,return)</favourite>
    <favourite name="Artist Albums">ActivateWindow(10502,&quot;F:\\Music\\FLAC\\Artist Albums\\&quot;,return)</favourite>
</favourites>


2 Renaming a favourite via xml

Change the name of any item by amending the <fabourite name=""> section.

<favourites>
    <favourite name="Enter Desired name here" thumb="http://static.ddmcdn.com/gif/videos/120x90/52447.jpg">PlayMedia(&quot;plugin://plugin.video.howstuffworks_com/?url=52447&amp;mode=playVideo&quot;)</favourite>
</favourites>


Return to top