Favourites.xml: Difference between revisions
Jump to navigation
Jump to search
(Updated for v18) |
|||
Line 1: | Line 1: | ||
{{mininav| [[Userdata | {{mininav| [[Userdata]] {{l2| [[Favourites]] }} }} | ||
<section begin="intro" />Developer documentation detailing the structure and modification of the favourites.xml file. For the User Guide about the favourites feature see '''''[[Favourites]]'''''.<section end="intro" /> | |||
== Favourites via xml== | == 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}}. | |||
'''Example | 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. | |||
<syntaxhighlight lang="XML" enclose="div"> | <syntaxhighlight lang="XML" enclose="div"> | ||
<favourites> | <favourites> | ||
<favourite name=" | <favourite name="Marvel Universe">ActivateWindow(10025,"special://profile/playlists/video/Marvel Universe.xsp",return)</favourite> | ||
<favourite name="Continuum" thumb="E:\TV Show- TEST\Continuum\thumb.jpg">ActivateWindow(10025,"E:\\TV Show- TEST\\Continuum\\",return)</favourite> | |||
<favourite name="1x02. Fast Times" thumb="E:\TV Show- TEST\Continuum\Continuum S01E02-thumb.jpg">PlayMedia("E:\\TV Show- TEST\\Continuum\\Continuum S01E02.mkv")</favourite> | |||
<favourite name="Era" thumb="F:\Music\ArtistInfoKodi\Era\folder.jpg">ActivateWindow(10502,"musicdb://artists/113/?albumartistsonly=false",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,"E:\\TV Show- TEST\\",return)</favourite> | |||
<favourite name="Artist Albums">ActivateWindow(10502,"F:\\Music\\FLAC\\Artist Albums\\",return)</favourite> | |||
</favourites> | </favourites> | ||
</syntaxhighlight > | </syntaxhighlight > | ||
==Renaming a favourite via xml== | ==Renaming a favourite via xml== | ||
Change the name of any item by amending the ''<fabourite name="">'' section. | |||
<syntaxhighlight lang="XML" enclose="div"> | <syntaxhighlight lang="XML" enclose="div"> | ||
Line 33: | Line 34: | ||
</syntaxhighlight > | </syntaxhighlight > | ||
{{Top}} | |||
{{updated|18}} | |||
[[Category:Index]] | |||
[[Category:Guides]] | |||
[[Category:Manual]] | |||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:General topics]] |
Revision as of 03:58, 4 July 2018
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.
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,"special://profile/playlists/video/Marvel Universe.xsp",return)</favourite> <favourite name="Continuum" thumb="E:\TV Show- TEST\Continuum\thumb.jpg">ActivateWindow(10025,"E:\\TV Show- TEST\\Continuum\\",return)</favourite> <favourite name="1x02. Fast Times" thumb="E:\TV Show- TEST\Continuum\Continuum S01E02-thumb.jpg">PlayMedia("E:\\TV Show- TEST\\Continuum\\Continuum S01E02.mkv")</favourite> <favourite name="Era" thumb="F:\Music\ArtistInfoKodi\Era\folder.jpg">ActivateWindow(10502,"musicdb://artists/113/?albumartistsonly=false",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,"E:\\TV Show- TEST\\",return)</favourite> <favourite name="Artist Albums">ActivateWindow(10502,"F:\\Music\\FLAC\\Artist Albums\\",return)</favourite> </favourites>
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("plugin://plugin.video.howstuffworks_com/?url=52447&mode=playVideo")</favourite> </favourites>
Return to top |
---|