The branch, frodo has been updated
via 4f5a8f2547a9e80466ab6446c56a3bae4239cfa7 (commit)
from d1f58fa18573578755699309702fe4d9e61b2052 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=4f5a8f2547a9e80466ab6446c56a3bae4239cfa7
commit 4f5a8f2547a9e80466ab6446c56a3bae4239cfa7
Author: ronie <[email protected]>
Date: Sun Feb 17 23:27:11 2013 +0100
[script.favourites] -v4.0.8
diff --git a/script.favourites/README.txt b/script.favourites/README.txt
index f053af9..80e0558 100644
--- a/script.favourites/README.txt
+++ b/script.favourites/README.txt
@@ -12,7 +12,8 @@ How to use this addon in your skin:
Additionally you can pass 'changetitle=true' to the script, this will allow
the user to change the name of the label.
-
+ The first item in the list (none) can be used to remove the current
favourite from a button.
+ The last item in the list (no action) can be used to change the label of a
button without asigning an action to it.
2) RunScript(script.favourites)
diff --git a/script.favourites/addon.xml b/script.favourites/addon.xml
index 155e932..dc1f74e 100644
--- a/script.favourites/addon.xml
+++ b/script.favourites/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.favourites" name="Favourites script" version="4.0.7"
provider-name="ronie, `Black">
+<addon id="script.favourites" name="Favourites script" version="4.0.8"
provider-name="ronie|`Black">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
@@ -10,5 +10,7 @@
<description>Fetches item from your xbmc favourites to populate
Home menu/submenu with custom buttons.</description>
<disclaimer>Needs skin support for it to be used
properly</disclaimer>
<platform>all</platform>
+ <forum>http://forum.xbmc.org/showthread.php?tid=114671</forum>
+ <source>https://code.google.com/p/ronie/source/</source>
</extension>
</addon>
diff --git a/script.favourites/changelog.txt b/script.favourites/changelog.txt
index a507a0d..0c0dc94 100644
--- a/script.favourites/changelog.txt
+++ b/script.favourites/changelog.txt
@@ -1,3 +1,6 @@
+v4.0.8
+- added 'no action' item to the end of the list
+
v4.0.7
- add favourite.count window property
diff --git a/script.favourites/default.py b/script.favourites/default.py
index d3f1b26..55d1d93 100644
--- a/script.favourites/default.py
+++ b/script.favourites/default.py
@@ -44,7 +44,7 @@ class Main:
if xbmcvfs.exists( self.fav_file ):
found = True
self.doc = parse( self.fav_file )
- favourites = self.doc.documentElement.getElementsByTagName (
'favourite' )
+ favourites = self.doc.documentElement.getElementsByTagName(
'favourite' )
else:
found = False
favourites = []
@@ -105,12 +105,17 @@ class MainGui( xbmcgui.WindowXMLDialog ):
else:
listitem.setIconImage( favourite.attributes[ 'thumb'
].nodeValue )
listitem.setProperty( "Icon", favourite.attributes[
'thumb' ].nodeValue )
- except: pass
+ except:
+ pass
if 'RunScript' not in fav_path:
fav_path = fav_path.rstrip(')')
fav_path = fav_path + ',return)'
listitem.setProperty( "Path", fav_path )
self.fav_list.addItem( listitem )
+ # add a dummy item with no action assigned
+ listitem = xbmcgui.ListItem( __language__(452) )
+ listitem.setProperty( "Path", 'noop' )
+ self.fav_list.addItem( listitem )
self.setFocus(self.fav_list)
def onAction(self, action):
diff --git a/script.favourites/resources/language/English/strings.xml
b/script.favourites/resources/language/English/strings.xml
index f8b4fba..74573b1 100644
--- a/script.favourites/resources/language/English/strings.xml
+++ b/script.favourites/resources/language/English/strings.xml
@@ -2,4 +2,5 @@
<strings>
<string id="450">Do you want to play the playlist instead of
entering?</string>
<string id="451">None (clear current settings)</string>
+ <string id="452">(no action)</string>
</strings>
-----------------------------------------------------------------------
Summary of changes:
script.favourites/README.txt | 3 ++-
script.favourites/addon.xml | 4 +++-
script.favourites/changelog.txt | 3 +++
script.favourites/default.py | 9 +++++++--
.../resources/language/English/strings.xml | 1 +
5 files changed, 16 insertions(+), 4 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons