Skip to content

Commit

Permalink
add skinhelper script widgets by default to the overrides.xml
Browse files Browse the repository at this point in the history
fixed small issue that program-addons was not showing scripts as executables in the listing
  • Loading branch information
marcelveldt committed Sep 4, 2015
1 parent 6f75cfb commit 10defce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions resources/lib/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,6 @@ def addons( self ):
if item['enabled'] == True:
path = "RunAddOn(" + item['addonid'].encode('utf-8') + ")"
action = None

thumb = "DefaultAddon.png"
if item['thumbnail'] != "":
thumb = item[ 'thumbnail' ]
Expand Down Expand Up @@ -1387,7 +1386,12 @@ def hasPluginEntryPoint( self, path ):
if provides is None:
return None
return provides.text.split( " " )

elif "point" in extension.attrib and extension.attrib.get( "point" ) == "xbmc.python.script":
# Script entry points should be treated as executable
provides = extension.find( "provides" )
if provides is None:
return None
return provides.text.split( " " )

except:
return None
Expand Down
9 changes: 8 additions & 1 deletion resources/shortcuts/overrides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
</flatgroupings>

<groupings>

<!-- script.skin.helper.service smart shortcuts -->
<shortcut label="$ADDON[script.skin.helper.service 32062]" type="32010" condition="System.HasAddon(script.skin.helper.service)">||BROWSE||script.skin.helper.service/?action=smartshortcuts</shortcut>

<node label="32029">
<content>common</content>
</node>
Expand Down Expand Up @@ -178,7 +182,10 @@
</groupings>

<widget-groupings>
<content>widgets</content>
<!-- script.skin.helper.service default widgets -->
<shortcut label="$ADDON[script.skin.helper.service 32063]" type="32010" condition="System.HasAddon(script.skin.helper.service)">||BROWSE||script.skin.helper.service/?action=widgets&amp;path=skinplaylists,librarydataprovider,scriptwidgets,extendedinfo,smartshortcuts,pvr,smartishwidgets</shortcut>

<content>widgets</content>
<node label="32030">
<content>video</content>
<node label="32040">
Expand Down

0 comments on commit 10defce

Please sign in to comment.