Favourites.xml: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:
'''Example 1'''
'''Example 1'''
Here is how simple favourites.xml file would like for the method outline above if you were to create it manually.
Here is how simple favourites.xml file would like for the method outline above if you were to create it manually.
<pre>
<syntaxhighlight lang="XML" enclose="div">
<favourites>
<favourites>
     <favourite name="Water Wars II: Privatization" 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="Water Wars II: Privatization" 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>
</favourites>
</pre>
</syntaxhighlight >


'''Example 2'''
'''Example 2'''


Here is how simple favourites.xml file looks like with SVN Repo Installed plugin entry (you need to have installed SVN Repo Installed and TED Video plugin previously installed):
Here is how simple favourites.xml file looks like with SVN Repo Installed plugin entry (you need to have installed SVN Repo Installed and TED Video plugin previously installed):
<pre>
<syntaxhighlight lang="XML" enclose="div">
<favourites>
<favourites>
     <favourite name="TED Talks" thumb="special://masterprofile/Thumbnails/Programs/d3b7311b.tbn">ActivateWindow(10024,plugin://video/TED Talks/)</favourite>
     <favourite name="TED Talks" thumb="special://masterprofile/Thumbnails/Programs/d3b7311b.tbn">ActivateWindow(10024,plugin://video/TED Talks/)</favourite>
     <favourite name="SVN Repo Installer" thumb="special://home/plugins/programs/SVN Repo Installer/default.tbn">ActivateWindow(10001,plugin://programs/SVN Repo Installer/)</favourite>  
     <favourite name="SVN Repo Installer" thumb="special://home/plugins/programs/SVN Repo Installer/default.tbn">ActivateWindow(10001,plugin://programs/SVN Repo Installer/)</favourite>  
</favourites>
</favourites>
</pre>
</syntaxhighlight >


==Renaming a favourite via xml==  
==Renaming a favourite via xml==  
You can when adding the Source Name it as you wish the filename to appear, however if your not happy with the name provided by default rename it to wahtever you wish.
You can when adding the Source Name it as you wish the filename to appear, however if your not happy with the name provided by default rename it to wahtever you wish.


<pre>
<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>
</favourites>
</favourites>
</pre>
</syntaxhighlight >

Revision as of 10:06, 17 March 2013

Favourites via xml

Creating and/or editing favourites.xml in the userdata folder

Example 1 Here is how simple favourites.xml file would like for the method outline above if you were to create it manually.

<favourites>
    <favourite name="Water Wars II: Privatization" 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>

Example 2

Here is how simple favourites.xml file looks like with SVN Repo Installed plugin entry (you need to have installed SVN Repo Installed and TED Video plugin previously installed):

<favourites>
    <favourite name="TED Talks" thumb="special://masterprofile/Thumbnails/Programs/d3b7311b.tbn">ActivateWindow(10024,plugin://video/TED Talks/)</favourite>
    <favourite name="SVN Repo Installer" thumb="special://home/plugins/programs/SVN Repo Installer/default.tbn">ActivateWindow(10001,plugin://programs/SVN Repo Installer/)</favourite> 
</favourites>

Renaming a favourite via xml

You can when adding the Source Name it as you wish the filename to appear, however if your not happy with the name provided by default rename it to wahtever you wish.

<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>